This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author vstinner
Recipients Michael.Felt, corona10, erlendaasland, miss-islington, rhettinger, ronaldoussoren, shihai1991, vstinner
Date 2022-01-27.01:07:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1643245660.94.0.409248978084.issue40170@roundup.psfhosted.org>
In-reply-to
Content
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 ==

* Cython/Compiler/ModuleNode.py: finalised_check = '!_PyGC_FINALIZED(o)'
* Cython/Compiler/ModuleNode.py: '(!PyType_IS_GC(Py_TYPE(o)) || !_PyGC_FINALIZED(o))')

== 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
History
Date User Action Args
2022-01-27 01:07:40vstinnersetrecipients: + vstinner, rhettinger, ronaldoussoren, Michael.Felt, corona10, miss-islington, shihai1991, erlendaasland
2022-01-27 01:07:40vstinnersetmessageid: <1643245660.94.0.409248978084.issue40170@roundup.psfhosted.org>
2022-01-27 01:07:40vstinnerlinkissue40170 messages
2022-01-27 01:07:40vstinnercreate