Skip to content

Commit 24b4bc6

Browse files
chris-b1jreback
authored andcommitted
BLD: 3.6.1 ABI compat (#16066)
1 parent 064f57f commit 24b4bc6

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

pandas/_libs/src/compat_helper.h

+11
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,19 @@ The full license is in the LICENSE file, distributed with this software.
1717
PySlice_GetIndicesEx changes signature in PY3
1818
but 3.6.1 in particular changes the behavior of this function slightly
1919
https://bugs.python.org/issue27867
20+
21+
22+
In 3.6.1 PySlice_GetIndicesEx was changed to a macro
23+
inadvertently breaking ABI compat. For now, undefing
24+
the macro, which restores compat.
25+
https://github.com/pandas-dev/pandas/issues/15961
26+
https://bugs.python.org/issue29943
2027
*/
2128

29+
#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
30+
#undef PySlice_GetIndicesEx
31+
#endif
32+
2233
PANDAS_INLINE int slice_get_indices(PyObject *s,
2334
Py_ssize_t length,
2435
Py_ssize_t *start,

0 commit comments

Comments
 (0)