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

Method write

crates/vm/src/stdlib/sys.rs:88–92  ·  view source on GitHub ↗
(&self, s: PyStrRef)

Source from the content-addressed store, hash-verified

86 impl BootstrapStderr {
87 #[pymethod]
88 fn write(&self, s: PyStrRef) -> PyResult<usize> {
89 let bytes = s.as_bytes();
90 let _ = std::io::stderr().write_all(bytes);
91 Ok(bytes.len())
92 }
93
94 #[pymethod]
95 fn flush(&self) -> PyResult<()> {

Callers 15

_clear_type_descriptorsFunction · 0.45
add_to_weak_setFunction · 0.45
nextMethod · 0.45
borrow_deque_mutMethod · 0.45
load_library_windowsFunction · 0.45
load_library_unixFunction · 0.45
free_libraryFunction · 0.45
dlcloseFunction · 0.45
resizeFunction · 0.45
__setstate__Method · 0.45
closeMethod · 0.45
nextMethod · 0.45

Calls 6

new_os_errorMethod · 0.80
to_stringMethod · 0.80
ErrClass · 0.50
as_bytesMethod · 0.45
lenMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected