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

Function error

crates/vm/src/stdlib/os.rs:2044–2050  ·  view source on GitHub ↗
(
            vm: &VirtualMachine,
            error: std::io::Error,
            path: OsPath,
        )

Source from the content-addressed store, hash-verified

2042
2043 #[cold]
2044 fn error(
2045 vm: &VirtualMachine,
2046 error: std::io::Error,
2047 path: OsPath,
2048 ) -> crate::builtins::PyBaseExceptionRef {
2049 OSErrorBuilder::with_filename(&error, path, vm)
2050 }
2051
2052 let path = OsPath::try_from_object(vm, path)?;
2053 // TODO: just call libc::truncate() on POSIX

Callers 3

truncateFunction · 0.70
stack_sizeFunction · 0.50
_py_panic_failedMethod · 0.50

Calls

no outgoing calls

Tested by

no test coverage detected