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

Method push_exception

crates/vm/src/vm/mod.rs:2040–2044  ·  view source on GitHub ↗
(&self, exc: Option<PyBaseExceptionRef>)

Source from the content-addressed store, hash-verified

2038 }
2039
2040 pub(crate) fn push_exception(&self, exc: Option<PyBaseExceptionRef>) {
2041 self.exceptions.borrow_mut().stack.push(exc);
2042 #[cfg(feature = "threading")]
2043 thread::update_thread_exception(self.topmost_exception());
2044 }
2045
2046 pub(crate) fn pop_exception(&self) -> Option<PyBaseExceptionRef> {
2047 let exc = self

Callers 1

with_frame_implMethod · 0.80

Calls 4

update_thread_exceptionFunction · 0.85
borrow_mutMethod · 0.80
topmost_exceptionMethod · 0.80
pushMethod · 0.45

Tested by

no test coverage detected