Skip to content

Use PyCapsule in CThunks instead of numpy compatibility layer #1352

Open
@ricardoV94

Description

@ricardoV94

Description

This seems to have been used around the Python2.x transition, we should probably get up with the times:

# This is not the most efficient code, but it is written this way to
# highlight the changes needed to make 2.x code compile under python 3.
code = code.replace("<Python.h>", '"numpy/npy_3kcompat.h"', 1)
code = code.replace("PyCObject", "NpyCapsule")

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions