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

Function stdlib_module_names

crates/vm/src/stdlib/sys.rs:628–635  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

626
627 #[pyattr(once)]
628 fn stdlib_module_names(vm: &VirtualMachine) -> PyObjectRef {
629 let names = STDLIB_MODULE_NAMES
630 .iter()
631 .map(|&n| vm.ctx.new_str(n).into());
632 PyFrozenSet::from_iter(vm, names)
633 .expect("Creating stdlib_module_names frozen set must succeed")
634 .to_pyobject(vm)
635 }
636
637 #[pyattr]
638 fn byteorder(vm: &VirtualMachine) -> PyStrRef {

Callers

nothing calls this directly

Calls 4

mapMethod · 0.45
iterMethod · 0.45
new_strMethod · 0.45
to_pyobjectMethod · 0.45

Tested by

no test coverage detected