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 0280559 commit 3eae7cbCopy full SHA for 3eae7cb
pythoncapi_compat.h
@@ -2667,16 +2667,13 @@ PyUnstable_Unicode_GET_CACHED_HASH(PyObject *op)
2667
static inline int
2668
PyUnstable_SetImmortal(PyObject *op)
2669
{
2670
-#if 0x030E0000 <= PY_VERSION_HEX
2671
- PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
2672
-#else
2673
-
2674
assert(op != NULL);
2675
if (!PyUnstable_Object_IsUniquelyReferenced(op) || PyUnicode_Check(op)) {
2676
return 0;
2677
}
2678
#if 0x030E0000 <= PY_VERSION_HEX
2679
- _Py_SetImmortal(op);
+ PyAPI_FUNC(void) _Py_SetImmortal(PyObject *op);
+ _Py_SetImmortal(op);
2680
#else
2681
// Python 3.13 doesn't export _Py_SetImmortal() function
2682
if (PyObject_GC_IsTracked(op)) {
0 commit comments