| 1862 | } |
| 1863 | |
| 1864 | static PyObject * |
| 1865 | npyiter_has_index_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
| 1866 | { |
| 1867 | if (self->iter == NULL) { |
| 1868 | PyErr_SetString(PyExc_ValueError, |
| 1869 | "Iterator is invalid"); |
| 1870 | return NULL; |
| 1871 | } |
| 1872 | |
| 1873 | if (NpyIter_HasIndex(self->iter)) { |
| 1874 | Py_RETURN_TRUE; |
| 1875 | } |
| 1876 | else { |
| 1877 | Py_RETURN_FALSE; |
| 1878 | } |
| 1879 | } |
| 1880 | |
| 1881 | static PyObject * |
| 1882 | npyiter_dtypes_get(NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
nothing calls this directly
no test coverage detected