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

Method close

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

Source from the content-addressed store, hash-verified

494
495 #[pymethod]
496 fn close(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
497 iobase_close(&instance, vm)
498 }
499
500 #[pymethod]
501 fn readline(

Callers

nothing calls this directly

Calls 15

iobase_closeFunction · 0.85
exception_chainFunction · 0.85
file_closedFunction · 0.85
close_strictMethod · 0.80
errMethod · 0.80
set___context__Method · 0.80
closeFunction · 0.70
ErrClass · 0.50
SomeClass · 0.50
mapMethod · 0.45
cloneMethod · 0.45
lockMethod · 0.45

Tested by

no test coverage detected