-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
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
@@ -17,7 +17,7 @@ The full license is in the LICENSE file, distributed with this software. | |||
#define O_BINARY 0 | |||
#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?
@@ -38,13 +38,9 @@ PANDAS_INLINE int slice_get_indices(PyObject *s, | |||
Py_ssize_t *stop, | |||
Py_ssize_t *step, | |||
Py_ssize_t *slicelength) { | |||
#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 pandas
git diff upstream/master -u -- "*.py" | flake8 --diff