Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __exit__
Method
__exit__
crates/vm/src/builtins/memory.rs:666–668 ·
view source on GitHub ↗
(&self, _args: FuncArgs)
Source
from the content-addressed store, hash-verified
664
665
#[pymethod]
666
fn __exit__(&self, _args: FuncArgs) {
667
self.release();
668
}
669
670
fn __getitem__(zelf: PyRef<Self>, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult {
671
zelf.try_not_released(vm)?;
Callers
nothing calls this directly
Calls
1
release
Method · 0.45
Tested by
no test coverage detected