Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ __exit__
Method
__exit__
crates/vm/src/stdlib/os.rs:934–936 ·
view source on GitHub ↗
(zelf: PyRef<Self>, _args: FuncArgs)
Source
from the content-addressed store, hash-verified
932
933
#[pymethod]
934
fn __exit__(zelf: PyRef<Self>, _args: FuncArgs) {
935
zelf.close()
936
}
937
938
#[pymethod]
939
fn __reduce__(&self, vm: &VirtualMachine) -> PyResult {
Callers
nothing calls this directly
Calls
1
close
Method · 0.45
Tested by
no test coverage detected