Skip to content

Commit 2471967

Browse files
mattipjreback
authored andcommitted
COMPAT: PySlice_GetIndicesEx is a macro on PyPy (#16194)
1 parent 49ca1ef commit 2471967

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

pandas/_libs/src/compat_helper.h

+4-2
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,10 @@ the macro, which restores compat.
2626
https://bugs.python.org/issue29943
2727
*/
2828

29-
#if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
30-
#undef PySlice_GetIndicesEx
29+
#ifndef PYPY_VERSION
30+
# if PY_VERSION_HEX < 0x03070000 && defined(PySlice_GetIndicesEx)
31+
# undef PySlice_GetIndicesEx
32+
# endif
3133
#endif
3234

3335
PANDAS_INLINE int slice_get_indices(PyObject *s,

0 commit comments

Comments
 (0)