File tree Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Expand file tree Collapse file tree 3 files changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -473,3 +473,10 @@ Removed
473
473
* or :c:func: `PyGILState_Ensure ` and :c:func: `PyGILState_Release `.
474
474
475
475
(Contributed by Victor Stinner in :gh: `105182 `.)
476
+
477
+ * Remove the old private, undocumented and untested ``_PyGC_FINALIZED() `` macro
478
+ which was kept for backward compatibility with Python 3.8 and older: use
479
+ :c:func: `PyObject_GC_IsFinalized() ` instead. The `pythoncapi-compat project
480
+ <https://github.com/python/pythoncapi-compat/> `_ can be used to get this
481
+ function on Python 3.8 and older.
482
+ (Contributed by Victor Stinner in :gh: `105268 `.)
Original file line number Diff line number Diff line change @@ -78,14 +78,6 @@ PyAPI_FUNC(void) PyObject_SetArenaAllocator(PyObjectArenaAllocator *allocator);
78
78
PyAPI_FUNC (int ) PyObject_IS_GC (PyObject * obj );
79
79
80
80
81
- /* Code built with Py_BUILD_CORE must include pycore_gc.h instead which
82
- defines a different _PyGC_FINALIZED() macro. */
83
- #ifndef Py_BUILD_CORE
84
- // Kept for backward compatibility with Python 3.8
85
- # define _PyGC_FINALIZED (o ) PyObject_GC_IsFinalized(o)
86
- #endif
87
-
88
-
89
81
// Test if a type supports weak references
90
82
PyAPI_FUNC (int ) PyType_SUPPORTS_WEAKREFS (PyTypeObject * type );
91
83
Original file line number Diff line number Diff line change
1
+ Remove the old private, undocumented and untested ``_PyGC_FINALIZED() `` macro
2
+ which was kept for backward compatibility with Python 3.8 and older. Patch by
3
+ Victor Stinner.
You can’t perform that action at this time.
0 commit comments