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

Method run

crates/stdlib/src/contextvars.rs:158–168  ·  view source on GitHub ↗
(
            zelf: &Py<Self>,
            callable: ArgCallable,
            args: FuncArgs,
            vm: &VirtualMachine,
        )

Source from the content-addressed store, hash-verified

156 impl PyContext {
157 #[pymethod]
158 fn run(
159 zelf: &Py<Self>,
160 callable: ArgCallable,
161 args: FuncArgs,
162 vm: &VirtualMachine,
163 ) -> PyResult {
164 Self::enter(zelf, vm)?;
165 let result = callable.invoke(args, vm);
166 Self::exit(zelf, vm)?;
167 result
168 }
169
170 #[pymethod]
171 fn copy(&self, vm: &VirtualMachine) -> Self {

Callers

nothing calls this directly

Calls 2

exitFunction · 0.50
invokeMethod · 0.45

Tested by

no test coverage detected