| 1909 | } |
| 1910 | |
| 1911 | static PyObject * |
| 1912 | npyiter_ndim_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
| 1913 | { |
| 1914 | if (self->iter == NULL) { |
| 1915 | PyErr_SetString(PyExc_ValueError, |
| 1916 | "Iterator is invalid"); |
| 1917 | return NULL; |
| 1918 | } |
| 1919 | |
| 1920 | return PyLong_FromLong(NpyIter_GetNDim(self->iter)); |
| 1921 | } |
| 1922 | |
| 1923 | static PyObject * |
| 1924 | npyiter_nop_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
nothing calls this directly
no test coverage detected