| 1692 | } |
| 1693 | |
| 1694 | static PyObject * |
| 1695 | npyiter_iterindex_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
| 1696 | { |
| 1697 | if (self->iter == NULL || self->finished) { |
| 1698 | PyErr_SetString(PyExc_ValueError, |
| 1699 | "Iterator is past the end"); |
| 1700 | return NULL; |
| 1701 | } |
| 1702 | |
| 1703 | return PyLong_FromLong(NpyIter_GetIterIndex(self->iter)); |
| 1704 | } |
| 1705 | |
| 1706 | static int |
| 1707 | npyiter_iterindex_set( |
nothing calls this directly
no test coverage detected