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

Method write_fmt

crates/vm/src/stdlib/sys.rs:1879–1890  ·  view source on GitHub ↗
(&self, args: core::fmt::Arguments<'_>)

Source from the content-addressed store, hash-verified

1877
1878impl PyStderr<'_> {
1879 pub fn write_fmt(&self, args: core::fmt::Arguments<'_>) {
1880 use crate::py_io::Write;
1881
1882 let vm = self.0;
1883 if let Ok(stderr) = get_stderr(vm) {
1884 let mut stderr = crate::py_io::PyWriter(stderr, vm);
1885 if let Ok(()) = stderr.write_fmt(args) {
1886 return;
1887 }
1888 }
1889 eprint!("{args}")
1890 }
1891}
1892
1893pub fn get_stdin(vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 2

get_stderrFunction · 0.85
PyWriterClass · 0.85

Tested by

no test coverage detected