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

Function get_stderr

crates/vm/src/stdlib/sys.rs:1903–1907  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1901 .map_err(|_| vm.new_runtime_error("lost sys.stdout"))
1902}
1903pub fn get_stderr(vm: &VirtualMachine) -> PyResult {
1904 vm.sys_module
1905 .get_attr("stderr", vm)
1906 .map_err(|_| vm.new_runtime_error("lost sys.stderr"))
1907}
1908
1909pub(crate) fn sysconfigdata_name() -> String {
1910 format!(

Callers 8

print_exceptionMethod · 0.85
excepthookFunction · 0.85
_unraisablehookFunction · 0.85
write_fmtMethod · 0.85
inputFunction · 0.85
handle_exit_exceptionMethod · 0.85
flush_stdMethod · 0.85

Calls 1

get_attrMethod · 0.45

Tested by

no test coverage detected