MCPcopy 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
1214impl 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_pyexceptionMethod · 0.45

Calls 3

cstring_errorFunction · 0.85
to_os_error_builderMethod · 0.80
into_pyexceptionMethod · 0.45

Tested by

no test coverage detected