bpo-35229: Deprecate _PyObject_GC_TRACK() (GH-10511)

Deprecate _PyObject_GC_TRACK() and _PyObject_GC_UNTRACK() in the
documentation. These macros are removed from Python 3.8 by the commit
1a6be91e6f.
This commit is contained in:
Victor Stinner 2018-11-13 13:06:11 +01:00 committed by GitHub
parent f6602f9266
commit 55b4771d5d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 6 additions and 0 deletions

View File

@ -66,6 +66,9 @@ Constructors for container types must conform to two rules:
A macro version of :c:func:`PyObject_GC_Track`. It should not be used for
extension modules.
.. deprecated:: 3.6
This macro is removed from Python 3.8.
Similarly, the deallocator for the object must conform to a similar pair of
rules:
@ -95,6 +98,9 @@ rules:
A macro version of :c:func:`PyObject_GC_UnTrack`. It should not be used for
extension modules.
.. deprecated:: 3.6
This macro is removed from Python 3.8.
The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function parameter of this type: