-
-
Notifications
You must be signed in to change notification settings - Fork 19.3k
Extension Module Compat Cleanup #29666
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
pandas/_libs/src/parser/io.c
Outdated
| #endif // O_BINARY | ||
|
|
||
| #if PY_VERSION_HEX >= 0x03060000 && defined(_WIN32) | ||
| #ifdef(_WIN32) |
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 saw some compilation failures around this.
Can't we just do a pure clean and remove the PY_VERSiON_HEX check from that if statement?
| #if PY_VERSION_HEX >= 0x03000000 | ||
|
|
||
| return PySlice_GetIndicesEx(s, length, start, stop, | ||
| step, slicelength); |
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.
if we're returning this unchanged, can we just use this function directly and not define an alias? i guess the pypy thing above might complicate this?
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.
Unclear for me at this point, but makes sense to investigate in a follow-up.
|
lgtm, pending green. |
|
thanks |
black pandasgit diff upstream/master -u -- "*.py" | flake8 --diff