(&self, py: Python, index: isize)
| 92 | /// Return the ith element of the Sequence. Equivalent to python `o[index]` |
| 93 | #[inline] |
| 94 | pub fn get_item(&self, py: Python, index: isize) -> PyResult<PyObject> { |
| 95 | unsafe { |
| 96 | result_from_owned_ptr( |
| 97 | py, |
| 98 | ffi::PySequence_GetItem(self.as_ptr(), index as Py_ssize_t), |
| 99 | ) |
| 100 | } |
| 101 | } |
| 102 | |
| 103 | /// Return the slice of sequence object o between begin and end. |
| 104 | /// This is the equivalent of the Python expression `o[begin:end]` |
nothing calls this directly
no test coverage detected