ENH: You can now drop NPY_MAXARGS
starting with NPY_2_3_API_VERSION
#502
Labels
NPY_MAXARGS
starting with NPY_2_3_API_VERSION
#502
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 fornumexpr
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).
The text was updated successfully, but these errors were encountered: