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

Function delitem

crates/vm/src/stdlib/_operator.rs:191–193  ·  view source on GitHub ↗
(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

189
190 #[pyfunction]
191 fn delitem(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
192 a.del_item(&*b, vm)
193 }
194
195 #[pyfunction]
196 fn getitem(a: PyObjectRef, b: PyObjectRef, vm: &VirtualMachine) -> PyResult {

Callers

nothing calls this directly

Calls 1

del_itemMethod · 0.45

Tested by

no test coverage detected