diff options
author | Victor Stinner <vstinner@python.org> | 2023-06-06 09:54:23 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2023-06-06 09:54:23 (GMT) |
commit | 8ddf0dd264acafda29dc587ab8393387bb9a76ab (patch) | |
tree | c471b0ee9bfe527fc383b3125a36de41cfcba762 /Include | |
parent | 49fe2e4af7993c124b98589ee608ed6ba2cee8e6 (diff) | |
download | cpython-8ddf0dd264acafda29dc587ab8393387bb9a76ab.zip cpython-8ddf0dd264acafda29dc587ab8393387bb9a76ab.tar.gz cpython-8ddf0dd264acafda29dc587ab8393387bb9a76ab.tar.bz2 |
gh-105268: Remove _PyGC_FINALIZED() macro (#105350)
Remove the old private, undocumented and untested _PyGC_FINALIZED()
macro which was kept for backward compatibility with Python 3.8 and
older.
Diffstat (limited to 'Include')
-rw-r--r-- | Include/cpython/objimpl.h | 8 |
1 files changed, 0 insertions, 8 deletions
diff --git a/Include/cpython/objimpl.h b/Include/cpython/objimpl.h index 5a8cdd5..58a30ae 100644 --- a/Include/cpython/objimpl.h +++ b/Include/cpython/objimpl.h @@ -78,14 +78,6 @@ PyAPI_FUNC(void) PyObject_SetArenaAllocator(PyObjectArenaAllocator *allocator); PyAPI_FUNC(int) PyObject_IS_GC(PyObject *obj); -/* Code built with Py_BUILD_CORE must include pycore_gc.h instead which - defines a different _PyGC_FINALIZED() macro. */ -#ifndef Py_BUILD_CORE - // Kept for backward compatibility with Python 3.8 -# define _PyGC_FINALIZED(o) PyObject_GC_IsFinalized(o) -#endif - - // Test if a type supports weak references PyAPI_FUNC(int) PyType_SUPPORTS_WEAKREFS(PyTypeObject *type); |