-
-
Notifications
You must be signed in to change notification settings - Fork 10.9k
DEP: Remove Python2 specific C module setup #14590
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
This will have to wait until 2020 when we drop python2 support. See the other PRs with the |
Okay, happy to wait :) |
|
||
/* Initialization function for the module */ | ||
#if defined(NPY_PY3K) | ||
#define RETVAL(x) x |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
RETVAL
is now a pointless alias. Depending on how much should be done in one go, could potentially remove it as well.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm planning to clean it up in a 2nd pass.
It's after 2020! Can we start submitting Py3K fixes? |
Yes, it is time. Lets take a look at the pending versions and take them in sequence. I think a rebase will fix the CircleCI failure. |
28b99f5
to
95aa807
Compare
95aa807
to
6a1f513
Compare
I rebased, but circleci failed again during building devdocs, I don't touch any files there so I'm confused as to why. |
xref #15227 |
This patch looks great to me, but let's remove |
@eric-wieser I cleaned up RETVAL and some other uses of PY_VERSION_HEX and NPY_PY3K in #15231 (which is a strict subset of these changes) it might be cleaner to just pull that (or to pull this then I can rebase #15231 immediately after) |
I'm excited about cleaning up all the Python2 specific code.
I broke out this small change first to make sure this can go in now and is a wanted changed.
If so there are ~700 instances of NPY_PY3K at least 50 of which contain real logic.