Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ to_pyexception
Method
to_pyexception
crates/vm/src/exceptions.rs:1215–1217 ·
view source on GitHub ↗
(&self, vm: &VirtualMachine)
Source
from the content-addressed store, hash-verified
1213
1214
impl ToPyException for alloc::ffi::NulError {
1215
fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef {
1216
cstring_error(vm)
1217
}
1218
}
1219
1220
#[cfg(windows)]
Callers
1
into_pyexception
Method · 0.45
Calls
3
cstring_error
Function · 0.85
to_os_error_builder
Method · 0.80
into_pyexception
Method · 0.45
Tested by
no test coverage detected