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

Method write_exception

crates/vm/src/exceptions.rs:79–86  ·  view source on GitHub ↗
(
        &self,
        output: &mut W,
        exc: &Py<PyBaseException>,
    )

Source from the content-addressed store, hash-verified

77 }
78
79 pub fn write_exception<W: Write>(
80 &self,
81 output: &mut W,
82 exc: &Py<PyBaseException>,
83 ) -> Result<(), W::Error> {
84 let seen = &mut HashSet::<usize>::new();
85 self.write_exception_recursive(output, exc, seen)
86 }
87
88 fn write_exception_recursive<W: Write>(
89 &self,

Callers 4

print_exceptionMethod · 0.80
serializeMethod · 0.80
excepthookFunction · 0.80
_py_panic_failedMethod · 0.80

Calls 2

newFunction · 0.85

Tested by

no test coverage detected