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

Function fire_py_unwind

crates/vm/src/stdlib/sys/monitoring.rs:984–998  ·  view source on GitHub ↗
(
    vm: &VirtualMachine,
    code: &PyRef<PyCode>,
    offset: u32,
    exception: &PyObjectRef,
)

Source from the content-addressed store, hash-verified

982}
983
984pub fn fire_py_unwind(
985 vm: &VirtualMachine,
986 code: &PyRef<PyCode>,
987 offset: u32,
988 exception: &PyObjectRef,
989) -> PyResult<()> {
990 RERAISE_PENDING.with(|f| f.set(false));
991 fire(
992 vm,
993 EVENT_PY_UNWIND,
994 code,
995 offset,
996 &[vm.ctx.new_int(offset).into(), exception.clone()],
997 )
998}
999
1000pub fn fire_py_throw(
1001 vm: &VirtualMachine,

Callers 2

runMethod · 0.85
gen_throwMethod · 0.85

Calls 5

fireFunction · 0.85
withMethod · 0.80
setMethod · 0.45
new_intMethod · 0.45
cloneMethod · 0.45

Tested by

no test coverage detected