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

Function is_decode_err

crates/vm/src/codecs.rs:1133–1135  ·  view source on GitHub ↗
(err: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1131}
1132#[inline]
1133fn is_decode_err(err: &PyObject, vm: &VirtualMachine) -> bool {
1134 err.fast_isinstance(vm.ctx.exceptions.unicode_decode_error)
1135}
1136#[inline]
1137fn is_translate_err(err: &PyObject, vm: &VirtualMachine) -> bool {
1138 err.fast_isinstance(vm.ctx.exceptions.unicode_translate_error)

Callers 5

ignore_errorsFunction · 0.85
replace_errorsFunction · 0.85
backslashreplace_errorsFunction · 0.85
surrogatepass_errorsFunction · 0.85
surrogateescape_errorsFunction · 0.85

Calls 1

fast_isinstanceMethod · 0.80

Tested by

no test coverage detected