MCPcopy Create free account
hub / github.com/numpy/numpy / npyiter_iterationneedsapi_get

Function npyiter_iterationneedsapi_get

numpy/core/src/multiarray/nditer_pywrap.c:1828–1844  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1826}
1827
1828static PyObject *
1829npyiter_iterationneedsapi_get(
1830 NewNpyArrayIterObject *self, void *NPY_UNUSED(ignored))
1831{
1832 if (self->iter == NULL) {
1833 PyErr_SetString(PyExc_ValueError,
1834 "Iterator is invalid");
1835 return NULL;
1836 }
1837
1838 if (NpyIter_IterationNeedsAPI(self->iter)) {
1839 Py_RETURN_TRUE;
1840 }
1841 else {
1842 Py_RETURN_FALSE;
1843 }
1844}
1845
1846static PyObject *
1847npyiter_has_multi_index_get(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected