Message 411817 - Python tracker (original) (raw)

I searched for "_PyGC_FINALIZED" in top 5000 PyPI projects. It seems like only Cython is impacted.

ddtrace and guppy3 use directly the internal C API.

== Cython 0.29.26 ==

== ddtrace 0.57.3 ==

In ddtrace/profiling/collector/stack.pyx:

    IF PY_MINOR_VERSION >= 9:
        # Needed for accessing _PyGC_FINALIZED when we build with -DPy_BUILD_CORE
        cdef extern from "<internal/pycore_gc.h>":
            pass

== guppy3-3.1.2 ==

In src/heapy/hv.c:

#if PY_MAJOR_VERSION >= 3 && PY_MINOR_VERSION >= 9

define Py_BUILD_CORE

/* PyGC_Head */

undef _PyGC_FINALIZED

include <internal/pycore_gc.h>

undef Py_BUILD_CORE

#endif