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

Method delitem

crates/vm/src/builtins/weakproxy.rs:122–125  ·  view source on GitHub ↗
(&self, needle: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

120 }
121
122 fn delitem(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
123 let obj = self.try_upgrade(vm)?;
124 obj.del_item(&*needle, vm)
125 }
126}
127
128impl Iterable for PyWeakProxy {

Callers

nothing calls this directly

Calls 2

try_upgradeMethod · 0.45
del_itemMethod · 0.45

Tested by

no test coverage detected