Skip to content

ENH: You can now drop NPY_MAXARGS starting with NPY_2_3_API_VERSION #502

Open
@seberg

Description

@seberg

As promised, you can now [1] do a runtime check for PyArray_RUNTIME_VERSION >= NPY_2_3_API_VERSION. If this is the case, NPY_MAXARGS is irrelevant (integer number of operands supported).
NumPy always raised an error for you on older versions, but I suppose it may make sense to keep the check to make that error clearer.

Of course, NE_MAXARGS is still used for numexpr internal stack allocations. That could be arbitrarily bumped or refactored away now.

[1] Well, may want to wait a few days for the next nightly (the version macro is also slightly off).

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