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

Function get_stdin

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

Source from the content-addressed store, hash-verified

1891}
1892
1893pub fn get_stdin(vm: &VirtualMachine) -> PyResult {
1894 vm.sys_module
1895 .get_attr("stdin", vm)
1896 .map_err(|_| vm.new_runtime_error("lost sys.stdin"))
1897}
1898pub fn get_stdout(vm: &VirtualMachine) -> PyResult {
1899 vm.sys_module
1900 .get_attr("stdout", vm)

Callers 1

inputFunction · 0.85

Calls 1

get_attrMethod · 0.45

Tested by

no test coverage detected