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

Function flush_inner

crates/vm/src/stdlib/_io.rs:3005–3010  ·  view source on GitHub ↗
(textio: &mut TextIOData, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

3003
3004 #[inline]
3005 fn flush_inner(textio: &mut TextIOData, vm: &VirtualMachine) -> PyResult {
3006 textio.check_closed(vm)?;
3007 textio.telling = textio.seekable;
3008 textio.write_pending(vm)?;
3009 vm.call_method(&textio.buffer, "flush", ())
3010 }
3011
3012 #[pyclass(
3013 with(

Callers 3

detachMethod · 0.85
flushMethod · 0.85
truncateMethod · 0.85

Calls 3

write_pendingMethod · 0.80
check_closedMethod · 0.45
call_methodMethod · 0.45

Tested by

no test coverage detected