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

Method gen_throw

crates/vm/src/frame.rs:1036–1044  ·  view source on GitHub ↗
(
        &self,
        vm: &VirtualMachine,
        exc_type: PyObjectRef,
        exc_val: PyObjectRef,
        exc_tb: PyObjectRef,
    )

Source from the content-addressed store, hash-verified

1034 }
1035
1036 pub(crate) fn gen_throw(
1037 &self,
1038 vm: &VirtualMachine,
1039 exc_type: PyObjectRef,
1040 exc_val: PyObjectRef,
1041 exc_tb: PyObjectRef,
1042 ) -> PyResult<ExecutionResult> {
1043 self.with_exec(vm, |mut exec| exec.gen_throw(vm, exc_type, exc_val, exc_tb))
1044 }
1045
1046 pub fn yield_from_target(&self) -> Option<PyObjectRef> {
1047 // If the frame is currently executing (owned by thread), it has no

Callers 2

throwMethod · 0.80
closeMethod · 0.80

Calls 15

newFunction · 0.85
fire_py_throwFunction · 0.85
fire_raiseFunction · 0.85
fire_py_unwindFunction · 0.85
with_execMethod · 0.80
yield_from_targetMethod · 0.80
fast_issubclassMethod · 0.80
fast_isinstanceMethod · 0.80
builtin_coroMethod · 0.80
get_attribute_optMethod · 0.80
lastiMethod · 0.80
__traceback__Method · 0.80

Tested by

no test coverage detected