Description
Issue description
In order to pass PR #1152 on CI, I need to access PyArray_GETITEM
and PyArray_SETITEM
. These functions are not a part of the limited Python API Pybind11 seems to give access to. I was wondering how I could go about using them?
Initially, Jason suggested reimplementing the functions like they are in ndarraytypes.h, but then realized that the object types like PyArray_ArrFuncs
is something we can't have access to. Is there a way around this? I guess, creating proxies doesn't make sense as well since the types are not exposed in Numpy's API, correct?
As per Jason's suggestion, I've asked the question on numpy-discussion as well, about why aren't these functions exposed like the rest of them in numpy_api.py.
Any help would be appreciated! Thanks!