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

Method __contains__

crates/vm/src/builtins/dict.rs:305–307  ·  view source on GitHub ↗
(&self, key: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

303 }
304
305 fn __contains__(&self, key: PyObjectRef, vm: &VirtualMachine) -> PyResult<bool> {
306 self.entries.contains(vm, &*key)
307 }
308
309 fn __delitem__(&self, key: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
310 self.inner_delitem(&*key, vm)

Callers

nothing calls this directly

Calls 2

sequence_uncheckedMethod · 0.80
containsMethod · 0.45

Tested by

no test coverage detected