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

Method split_exception

crates/vm/src/exceptions.rs:328–335  ·  view source on GitHub ↗
(
        &self,
        exc: PyBaseExceptionRef,
    )

Source from the content-addressed store, hash-verified

326 }
327
328 pub fn split_exception(
329 &self,
330 exc: PyBaseExceptionRef,
331 ) -> (PyObjectRef, PyObjectRef, PyObjectRef) {
332 let tb = exc.__traceback__().to_pyobject(self);
333 let class = exc.class().to_owned();
334 (class.into(), exc.into(), tb)
335 }
336
337 /// Similar to PyErr_NormalizeException in CPython
338 pub fn normalize_exception(

Callers 3

print_exceptionMethod · 0.80
execute_instructionMethod · 0.80
exc_infoFunction · 0.80

Calls 4

__traceback__Method · 0.80
to_pyobjectMethod · 0.45
to_ownedMethod · 0.45
classMethod · 0.45

Tested by

no test coverage detected