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

Function cstring_error

crates/vm/src/exceptions.rs:1210–1212  ·  view source on GitHub ↗
(vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1208}
1209
1210pub fn cstring_error(vm: &VirtualMachine) -> PyBaseExceptionRef {
1211 vm.new_value_error("embedded null character")
1212}
1213
1214impl ToPyException for alloc::ffi::NulError {
1215 fn to_pyexception(&self, vm: &VirtualMachine) -> PyBaseExceptionRef {

Callers 15

set_ciphersMethod · 0.85
set_ecdh_curveMethod · 0.85
getgrnamFunction · 0.85
ensure_no_nulMethod · 0.85
to_pyexceptionMethod · 0.85
try_fromMethod · 0.85
getpwnamFunction · 0.85
validate_errorsMethod · 0.85
resolve_encodingMethod · 0.85
CreateProcessFunction · 0.85
getenvironmentFunction · 0.85
lookupFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected