Skip to content

Accessing PyArray_GETITEM and PyArray_SETITEM #1181

Open
@m-chaturvedi

Description

@m-chaturvedi

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!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions