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

Function npyiter_has_delayed_bufalloc_get

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

Source from the content-addressed store, hash-verified

1808}
1809
1810static PyObject *
1811npyiter_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
1828static PyObject *
1829npyiter_iterationneedsapi_get(

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected