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

Method flush

crates/vm/src/stdlib/sys.rs:95–98  ·  view source on GitHub ↗
(&self)

Source from the content-addressed store, hash-verified

93
94 #[pymethod]
95 fn flush(&self) -> PyResult<()> {
96 let _ = std::io::stderr().flush();
97 Ok(())
98 }
99 }
100
101 /// Lightweight stdio wrapper for sandbox mode (no host_env).

Callers 1

readlineMethod · 0.45

Calls 2

new_os_errorMethod · 0.80
to_stringMethod · 0.80

Tested by

no test coverage detected