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

Function exc_info

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

Source from the content-addressed store, hash-verified

923
924 #[pyfunction]
925 fn exc_info(vm: &VirtualMachine) -> (PyObjectRef, PyObjectRef, PyObjectRef) {
926 match vm.topmost_exception() {
927 Some(exception) => vm.split_exception(exception),
928 None => (vm.ctx.none(), vm.ctx.none(), vm.ctx.none()),
929 }
930 }
931
932 #[pyattr]
933 fn flags(vm: &VirtualMachine) -> PyTupleRef {

Callers

nothing calls this directly

Calls 3

topmost_exceptionMethod · 0.80
split_exceptionMethod · 0.80
noneMethod · 0.80

Tested by

no test coverage detected