Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __context__
Method
__context__
crates/vm/src/exceptions.rs:645–647 ·
view source on GitHub ↗
(&self)
Source
from the content-addressed store, hash-verified
643
644
#[pygetset]
645
pub fn __context__(&self) -> Option<PyRef<Self>> {
646
self.context.read().clone()
647
}
648
649
#[pygetset(setter)]
650
pub fn set___context__(&self, context: Option<PyRef<Self>>) {
Callers
4
write_exception_recursive
Method · 0.80
serialize
Method · 0.80
derive_and_copy_attributes
Function · 0.80
contextualize_exception
Method · 0.80
Calls
2
clone
Method · 0.45
read
Method · 0.45
Tested by
no test coverage detected