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

Method flush

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

Source from the content-addressed store, hash-verified

462
463 #[pymethod]
464 fn flush(instance: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
465 // just check if this is closed; if it isn't, do nothing
466 check_closed(&instance, vm)
467 }
468
469 #[pymethod]
470 fn seekable(_self: PyObjectRef) -> bool {

Callers 4

flush_rewindMethod · 0.45
seekMethod · 0.45
writeMethod · 0.45
close_strictMethod · 0.45

Calls 14

check_closedFunction · 0.85
flush_innerFunction · 0.85
io_closed_errorFunction · 0.85
valid_writeMethod · 0.80
reset_writeMethod · 0.80
raw_offsetMethod · 0.80
raw_seekMethod · 0.80
raw_writeMethod · 0.80
invoke_exceptionMethod · 0.80
check_signalsMethod · 0.80
ErrClass · 0.50
to_ownedMethod · 0.45

Tested by

no test coverage detected