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

Function module_exec

crates/stdlib/src/pyexpat.rs:53–66  ·  view source on GitHub ↗
(vm: &VirtualMachine, module: &Py<PyModule>)

Source from the content-addressed store, hash-verified

51 use xml::reader::XmlEvent;
52
53 pub(crate) fn module_exec(vm: &VirtualMachine, module: &Py<PyModule>) -> PyResult<()> {
54 __module_exec(vm, module);
55
56 // Add submodules
57 let model = super::_model::module_def(&vm.ctx).create_module(vm)?;
58 let errors = super::_errors::module_def(&vm.ctx).create_module(vm)?;
59
60 extend_module!(vm, module, {
61 "model" => model,
62 "errors" => errors,
63 });
64
65 Ok(())
66 }
67
68 type MutableObject = PyRwLock<PyObjectRef>;
69

Callers

nothing calls this directly

Calls 1

create_moduleMethod · 0.45

Tested by

no test coverage detected