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

Function is_frozen_package

crates/vm/src/stdlib/_imp.rs:279–284  ·  view source on GitHub ↗
(name: PyUtf8StrRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

277
278 #[pyfunction]
279 fn is_frozen_package(name: PyUtf8StrRef, vm: &VirtualMachine) -> PyResult<bool> {
280 let name_str = name.as_str();
281 super::find_frozen(name_str, vm)
282 .map(|frozen| frozen.package)
283 .map_err(|e| e.to_pyexception(name_str, vm))
284 }
285
286 #[pyfunction]
287 fn _override_frozen_modules_for_tests(value: isize, vm: &VirtualMachine) {

Callers

nothing calls this directly

Calls 4

find_frozenFunction · 0.85
as_strMethod · 0.45
mapMethod · 0.45
to_pyexceptionMethod · 0.45

Tested by

no test coverage detected