MCPcopy Create free account
hub / github.com/dgrunwald/rust-cpython / del_item

Method del_item

src/objects/sequence.rs:130–134  ·  view source on GitHub ↗
(&self, py: Python, i: isize)

Source from the content-addressed store, hash-verified

128 /// Python statement `del o[i]`
129 #[inline]
130 pub fn del_item(&self, py: Python, i: isize) -> PyResult<()> {
131 unsafe {
132 err::error_on_minusone(py, ffi::PySequence_DelItem(self.as_ptr(), i as Py_ssize_t))
133 }
134 }
135
136 /// Assign the sequence object v to the slice in sequence object o from i1 to i2.
137 /// This is the equivalent of the Python statement `o[i1:i2] = v`

Callers

nothing calls this directly

Calls 2

error_on_minusoneFunction · 0.85
as_ptrMethod · 0.45

Tested by

no test coverage detected