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

Method delitem_inner

crates/stdlib/src/array.rs:1044–1049  ·  view source on GitHub ↗
(&self, needle: &PyObject, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

1042 }
1043
1044 fn delitem_inner(&self, needle: &PyObject, vm: &VirtualMachine) -> PyResult<()> {
1045 match SequenceIndex::try_from_borrowed_object(vm, needle, "array")? {
1046 SequenceIndex::Int(i) => self.try_resizable(vm)?.delitem_by_index(i, vm),
1047 SequenceIndex::Slice(slice) => self.try_resizable(vm)?.delitem_by_slice(slice, vm),
1048 }
1049 }
1050
1051 fn __delitem__(&self, needle: PyObjectRef, vm: &VirtualMachine) -> PyResult<()> {
1052 self.delitem_inner(&needle, vm)

Callers 1

__delitem__Method · 0.80

Calls 3

delitem_by_indexMethod · 0.80
try_resizableMethod · 0.80
delitem_by_sliceMethod · 0.80

Tested by

no test coverage detected