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

Function is_translate_err

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

Source from the content-addressed store, hash-verified

1135}
1136#[inline]
1137fn is_translate_err(err: &PyObject, vm: &VirtualMachine) -> bool {
1138 err.fast_isinstance(vm.ctx.exceptions.unicode_translate_error)
1139}
1140
1141fn bad_err_type(err: PyObjectRef, vm: &VirtualMachine) -> PyBaseExceptionRef {
1142 vm.new_type_error(format!(

Callers 3

ignore_errorsFunction · 0.85
replace_errorsFunction · 0.85
backslashreplace_errorsFunction · 0.85

Calls 1

fast_isinstanceMethod · 0.80

Tested by

no test coverage detected