Skip to content

Commit 55b4771

Browse files
authored
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 1a6be91.
1 parent f6602f9 commit 55b4771

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

Doc/c-api/gcsupport.rst

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,9 @@ Constructors for container types must conform to two rules:
6666
A macro version of :c:func:`PyObject_GC_Track`. It should not be used for
6767
extension modules.
6868
69+
.. deprecated:: 3.6
70+
This macro is removed from Python 3.8.
71+
6972
Similarly, the deallocator for the object must conform to a similar pair of
7073
rules:
7174
@@ -95,6 +98,9 @@ rules:
9598
A macro version of :c:func:`PyObject_GC_UnTrack`. It should not be used for
9699
extension modules.
97100
101+
.. deprecated:: 3.6
102+
This macro is removed from Python 3.8.
103+
98104
The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function parameter of this type:
99105
100106

0 commit comments

Comments
 (0)