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

Function set_coroutine_origin_tracking_depth

crates/vm/src/stdlib/sys.rs:1414–1420  ·  view source on GitHub ↗
(depth: i32, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1412
1413 #[pyfunction]
1414 fn set_coroutine_origin_tracking_depth(depth: i32, vm: &VirtualMachine) -> PyResult<()> {
1415 if depth < 0 {
1416 return Err(vm.new_value_error("depth must be >= 0"));
1417 }
1418 crate::vm::thread::COROUTINE_ORIGIN_TRACKING_DEPTH.set(depth as u32);
1419 Ok(())
1420 }
1421
1422 #[pyfunction]
1423 fn get_coroutine_origin_tracking_depth() -> i32 {

Callers

nothing calls this directly

Calls 2

ErrClass · 0.50
setMethod · 0.45

Tested by

no test coverage detected