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

Function is_gen_exit

crates/vm/src/coroutine.rs:285–287  ·  view source on GitHub ↗
(exc: &Py<PyBaseException>, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

283}
284
285pub fn is_gen_exit(exc: &Py<PyBaseException>, vm: &VirtualMachine) -> bool {
286 exc.fast_isinstance(vm.ctx.exceptions.generator_exit)
287}
288
289/// Get an awaitable iterator from an object.
290///

Callers 1

closeMethod · 0.85

Calls 1

fast_isinstanceMethod · 0.80

Tested by

no test coverage detected