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

Class PyStderr

crates/vm/src/stdlib/sys.rs:1876–1876  ·  view source on GitHub ↗

Similar to PySys_WriteStderr in CPython. # Usage ```rust,ignore writeln!(sys::PyStderr(vm), "foo bar baz :)"); ``` Unlike writing to a `std::io::Write` with the `write[ln]!()` macro, there's no error condition here; this is intended to be a replacement for the `eprint[ln]!()` macro, so `write!()`-ing to PyStderr just returns `()`.

Source from the content-addressed store, hash-verified

1874/// this is intended to be a replacement for the `eprint[ln]!()` macro, so `write!()`-ing to PyStderr just
1875/// returns `()`.
1876pub struct PyStderr<'vm>(pub &'vm VirtualMachine);
1877
1878impl PyStderr<'_> {
1879 pub fn write_fmt(&self, args: core::fmt::Arguments<'_>) {

Callers 3

show_warningFunction · 0.85
_unraisablehookFunction · 0.85
unraisablehookFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected