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

Method del_item

crates/vm/src/builtins/dict.rs:726–732  ·  view source on GitHub ↗
(&self, key: &K, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

724 }
725
726 pub fn del_item<K: DictKey + ?Sized>(&self, key: &K, vm: &VirtualMachine) -> PyResult<()> {
727 if self.exact_dict(vm) {
728 self.inner_delitem(key, vm)
729 } else {
730 self.as_object().del_item(key, vm)
731 }
732 }
733
734 pub fn pop_item<K: DictKey + ?Sized>(
735 &self,

Callers 13

_leave_taskFunction · 0.45
_swap_current_taskFunction · 0.45
import_builtinFunction · 0.45
execute_instructionMethod · 0.45
delitemFunction · 0.45
__build_class__Function · 0.45
setattroMethod · 0.45
pop_itemMethod · 0.45
set___annotate__Method · 0.45
set___annotations__Method · 0.45
delitemMethod · 0.45

Calls 3

exact_dictMethod · 0.80
inner_delitemMethod · 0.80
as_objectMethod · 0.45

Tested by

no test coverage detected