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

Function copy_context

crates/stdlib/src/contextvars.rs:639–641  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

637
638 #[pyfunction]
639 fn copy_context(vm: &VirtualMachine) -> PyContext {
640 PyContext::current(vm).copy(vm)
641 }
642
643 // Set Token.MISSING attribute
644 pub(crate) fn module_exec(

Callers

nothing calls this directly

Calls 1

copyMethod · 0.45

Tested by

no test coverage detected