Takes an object and returns an iterator for it. This is typically a new iterator but if the argument is an iterator, this returns itself.
(&self, vm: &VirtualMachine)
| 81 | /// This is typically a new iterator but if the argument is an iterator, this |
| 82 | /// returns itself. |
| 83 | pub fn get_iter(&self, vm: &VirtualMachine) -> PyResult<PyIter> { |
| 84 | // PyObject_GetIter |
| 85 | PyIter::try_from_object(vm, self.to_owned()) |
| 86 | } |
| 87 | |
| 88 | // PyObject *PyObject_GetAIter(PyObject *o) |
| 89 | pub fn get_aiter(&self, vm: &VirtualMachine) -> PyResult { |
no test coverage detected