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

Method winerror

crates/vm/src/exceptions.rs:1319–1322  ·  view source on GitHub ↗
(mut self, winerror: PyObjectRef)

Source from the content-addressed store, hash-verified

1317 #[must_use]
1318 #[cfg(windows)]
1319 pub(crate) fn winerror(mut self, winerror: PyObjectRef) -> Self {
1320 self.winerror.replace(winerror);
1321 self
1322 }
1323
1324 /// Strip winerror from the builder. Used for C runtime errors
1325 /// (e.g. `_wopen`, `open`) that should produce `[Errno X]` format

Callers 1

to_os_error_builderMethod · 0.80

Calls 2

replaceMethod · 0.45
to_ownedMethod · 0.45

Tested by

no test coverage detected