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

Method set___cause__

crates/vm/src/exceptions.rs:638–642  ·  view source on GitHub ↗
(&self, cause: Option<PyRef<Self>>)

Source from the content-addressed store, hash-verified

636
637 #[pygetset(setter)]
638 pub fn set___cause__(&self, cause: Option<PyRef<Self>>) {
639 let mut c = self.cause.write();
640 self.set_suppress_context(true);
641 *c = cause;
642 }
643
644 #[pygetset]
645 pub fn __context__(&self) -> Option<PyRef<Self>> {

Callers 6

set_exceptionMethod · 0.80
finalize_send_resultMethod · 0.80
execute_raiseMethod · 0.80
call_intrinsic_1Method · 0.80
raw_readMethod · 0.80
import_encodingsMethod · 0.80

Calls 2

set_suppress_contextMethod · 0.80
writeMethod · 0.45

Tested by

no test coverage detected