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

Method closed

crates/vm/src/stdlib/_io.rs:491–493  ·  view source on GitHub ↗
(instance: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

489
490 #[pygetset]
491 fn closed(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult {
492 instance.get_attr("__closed", vm)
493 }
494
495 #[pymethod]
496 fn close(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {

Callers 1

isattyMethod · 0.45

Calls 4

get_attrMethod · 0.45
cloneMethod · 0.45
lockMethod · 0.45
loadMethod · 0.45

Tested by

no test coverage detected