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

Function settrace

crates/vm/src/stdlib/sys.rs:1374–1377  ·  view source on GitHub ↗
(tracefunc: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1372
1373 #[pyfunction]
1374 fn settrace(tracefunc: PyObjectRef, vm: &VirtualMachine) {
1375 vm.trace_func.replace(tracefunc);
1376 update_use_tracing(vm);
1377 }
1378
1379 #[pyfunction]
1380 fn _settraceallthreads(tracefunc: PyObjectRef, vm: &VirtualMachine) {

Callers

nothing calls this directly

Calls 2

update_use_tracingFunction · 0.85
replaceMethod · 0.45

Tested by

no test coverage detected