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

Function get_asyncgen_hooks

crates/vm/src/stdlib/sys.rs:1524–1529  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1522
1523 #[pyfunction]
1524 fn get_asyncgen_hooks(vm: &VirtualMachine) -> AsyncgenHooksData {
1525 AsyncgenHooksData {
1526 firstiter: vm.async_gen_firstiter.borrow().clone().to_pyobject(vm),
1527 finalizer: vm.async_gen_finalizer.borrow().clone().to_pyobject(vm),
1528 }
1529 }
1530
1531 /// sys.flags
1532 ///

Callers

nothing calls this directly

Calls 3

to_pyobjectMethod · 0.45
cloneMethod · 0.45
borrowMethod · 0.45

Tested by

no test coverage detected