MCPcopy Index your code
hub / github.com/RustPython/RustPython / SimpleNamespace

Function SimpleNamespace

crates/vm/src/stdlib/_types.rs:139–141  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

137
138 #[pyattr]
139 fn SimpleNamespace(vm: &VirtualMachine) -> PyObjectRef {
140 vm.ctx.types.namespace_type.to_owned().into()
141 }
142
143 #[pyattr]
144 fn TracebackType(vm: &VirtualMachine) -> PyObjectRef {

Calls 1

to_ownedMethod · 0.45