Skip to content

Commit

Permalink
BLD: 3.6.1 ABI compat (#16066)
Browse files Browse the repository at this point in the history
  • Loading branch information
chris-b1 authored and jreback committed Apr 20, 2017
1 parent 064f57f commit 24b4bc6
Showing 1 changed file with 11 additions and 0 deletions.
11 changes: 11 additions & 0 deletions pandas/_libs/src/compat_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,19 @@ The full license is in the LICENSE file, distributed with this software.
PySlice_GetIndicesEx changes signature in PY3
but 3.6.1 in particular changes the behavior of this function slightly
https://bugs.python.org/issue27867
In 3.6.1 PySlice_GetIndicesEx was changed to a macro
inadvertently breaking ABI compat. For now, undefing
the macro, which restores compat.
https://github.com/pandas-dev/pandas/issues/15961
https://bugs.python.org/issue29943
*/

#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
#undef PySlice_GetIndicesEx
#endif

PANDAS_INLINE int slice_get_indices(PyObject *s,
Py_ssize_t length,
Py_ssize_t *start,
Expand Down

0 comments on commit 24b4bc6

Please sign in to comment.