We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent fa5b90a commit 16b302cCopy full SHA for 16b302c
pandas/_libs/internals.pyx
@@ -1006,8 +1006,11 @@ cdef class BlockValuesRefs:
1006
1007
cdef extern from "Python.h":
1008
"""
1009
+ // python version < 3.14
1010
#if PY_VERSION_HEX < 0x030E0000
- int __Pyx_PyUnstable_Object_IsUniqueReferencedTemporary(PyObject *ref);
1011
+ int __Pyx_PyUnstable_Object_IsUniqueReferencedTemporary(PyObject *ref) {
1012
+ return Py_REFCNT(ref) == 1;
1013
+ }
1014
#else
1015
#define __Pyx_PyUnstable_Object_IsUniqueReferencedTemporary \
1016
PyUnstable_Object_IsUniqueReferencedTemporary
0 commit comments