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

Method lookup_error_opt

crates/vm/src/codecs.rs:399–401  ·  view source on GitHub ↗
(&self, name: &str)

Source from the content-addressed store, hash-verified

397 }
398
399 pub fn lookup_error_opt(&self, name: &str) -> Option<PyObjectRef> {
400 self.inner.read().errors.get(name).cloned()
401 }
402
403 pub fn lookup_error(&self, name: &str, vm: &VirtualMachine) -> PyResult<PyObjectRef> {
404 self.lookup_error_opt(name)

Callers 1

lookup_errorMethod · 0.80

Calls 2

getMethod · 0.45
readMethod · 0.45

Tested by

no test coverage detected