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

Function _frozen_module_names

crates/vm/src/stdlib/_imp.rs:299–307  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

297
298 #[pyfunction]
299 fn _frozen_module_names(vm: &VirtualMachine) -> PyResult<Vec<PyObjectRef>> {
300 let names = vm
301 .state
302 .frozen
303 .keys()
304 .map(|&name| vm.ctx.new_utf8_str(name).into())
305 .collect();
306 Ok(names)
307 }
308
309 #[allow(clippy::type_complexity)]
310 #[pyfunction]

Callers

nothing calls this directly

Calls 4

collectMethod · 0.80
new_utf8_strMethod · 0.80
mapMethod · 0.45
keysMethod · 0.45

Tested by

no test coverage detected