| 1808 | } |
| 1809 | |
| 1810 | static PyObject * |
| 1811 | npyiter_has_delayed_bufalloc_get( |
| 1812 | NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored)) |
| 1813 | { |
| 1814 | if (self->iter == NULL) { |
| 1815 | PyErr_SetString(PyExc_ValueError, |
| 1816 | "Iterator is invalid"); |
| 1817 | return NULL; |
| 1818 | } |
| 1819 | |
| 1820 | if (NpyIter_HasDelayedBufAlloc(self->iter)) { |
| 1821 | Py_RETURN_TRUE; |
| 1822 | } |
| 1823 | else { |
| 1824 | Py_RETURN_FALSE; |
| 1825 | } |
| 1826 | } |
| 1827 | |
| 1828 | static PyObject * |
| 1829 | npyiter_iterationneedsapi_get( |
nothing calls this directly
no test coverage detected