-
-
Notifications
You must be signed in to change notification settings - Fork 11k
MAINT: update API_VERSION to numpy version mapping #12235
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
waiting for a review ... |
@charris could you take a look |
I don't think this is correct. The versions here refer to the include files only, and are for deprecating the functions/macros therein. They are independent of the API versions tracked in |
I don;t understand, the |
Same name, different things. Call it NPY_FOO_VERSION. It has never has a relation to the other API version. |
Well, we should update the number anyway since the headers have changed,
So the NPY_API_VERSION and, for instance, NPY_1_16_API_VERSION have no correlation? That indeed is confusing. Wouldn't it be better to keep them in sync? What would it harm? |
Think of it this way, the Now I search into the include files and see that you did use the version to deprecate To summarize, the |
A question. Will code compiled with older NumPy |
Isn't that mattip's point? If they For that to work, |
They also don't get direct access to the structures. The point is that those two things follow separate deprecation paths. |
ok, closing. Thanks for the explanations |
@mattip Thanks for making me think about it :) Another way to see what was intended is to think of the I think we still need to figure out how to handle the |
Our mapping from cversions.txt to
numpyconfig.h
is out of date.The only place it mattered was in deprecating
PyArray_XDECREF_ERR
which was labelledNPY_1_14_API_VERSION
.