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

Function module_exec

crates/stdlib/src/contextvars.rs:644–654  ·  view source on GitHub ↗

Set Token.MISSING attribute

(
        vm: &VirtualMachine,
        module: &Py<crate::vm::builtins::PyModule>,
    )

Source from the content-addressed store, hash-verified

642
643 // Set Token.MISSING attribute
644 pub(crate) fn module_exec(
645 vm: &VirtualMachine,
646 module: &Py<crate::vm::builtins::PyModule>,
647 ) -> PyResult<()> {
648 __module_exec(vm, module);
649
650 let token_type = module.get_attr("Token", vm)?;
651 token_type.set_attr("MISSING", ContextTokenMissing::static_type().to_owned(), vm)?;
652
653 Ok(())
654 }
655}

Callers

nothing calls this directly

Calls 3

get_attrMethod · 0.45
set_attrMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected