MCPcopy Create free account
hub / github.com/MegEngine/MegFlow / __delitem__

Method __delitem__

flow-message/src/cross/python/cow_list.rs:42–47  ·  view source on GitHub ↗
(&mut self, idx: isize)

Source from the content-addressed store, hash-verified

40 }
41
42 fn __delitem__(&mut self, idx: isize) -> PyResult<()> {
43 let len = self.as_ref().len();
44 let idx = cvt_idx(len, idx);
45 self.as_mut().remove(idx);
46 Ok(())
47 }
48
49 fn __concat__(&self, other: Py<PyCowList>) -> PyResult<PyObject> {
50 let gil = Python::acquire_gil();

Callers

nothing calls this directly

Calls 4

cvt_idxFunction · 0.85
as_refMethod · 0.80
removeMethod · 0.80
lenMethod · 0.45

Tested by

no test coverage detected