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

Function __import__

crates/vm/src/stdlib/builtins.rs:1150–1152  ·  view source on GitHub ↗
(args: ImportArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1148
1149 #[pyfunction]
1150 fn __import__(args: ImportArgs, vm: &VirtualMachine) -> PyResult {
1151 crate::import::import_module_level(&args.name, args.globals, args.fromlist, args.level, vm)
1152 }
1153
1154 #[pyfunction]
1155 fn vars(obj: OptionalArg, vm: &VirtualMachine) -> PyResult {

Callers 1

iter_modulesFunction · 0.50

Calls 1

import_module_levelFunction · 0.85

Tested by

no test coverage detected