Appends an item to the end of the list
(&self, _py: Python, item: PyObject)
| 89 | |
| 90 | /// Appends an item to the end of the list |
| 91 | pub fn append(&self, _py: Python, item: PyObject) { |
| 92 | unsafe { ffi::PyList_Append(self.0.as_ptr(), item.as_ptr()) }; |
| 93 | } |
| 94 | |
| 95 | #[inline] |
| 96 | pub fn iter<'a, 'p>(&'a self, py: Python<'p>) -> PyListIterator<'a, 'p> { |