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

Method get_namespaces

crates/vm/src/stdlib/_symtable.rs:319–326  ·  view source on GitHub ↗
(&self, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

317
318 #[pymethod]
319 fn get_namespaces(&self, vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
320 let namespaces = self
321 .namespaces
322 .iter()
323 .map(|table| to_py_symbol_table(table.clone()).into_pyobject(vm))
324 .collect();
325 Ok(namespaces)
326 }
327
328 #[pymethod]
329 fn get_namespace(&self, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 6

to_py_symbol_tableFunction · 0.85
collectMethod · 0.80
mapMethod · 0.45
iterMethod · 0.45
into_pyobjectMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected