Method
run
(
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
Tested by
no test coverage detected