diff options
Diffstat (limited to 'Doc/c-api')
-rw-r--r-- | Doc/c-api/gcsupport.rst | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst index 7f54b6a..b739aac 100644 --- a/Doc/c-api/gcsupport.rst +++ b/Doc/c-api/gcsupport.rst @@ -61,11 +61,6 @@ Constructors for container types must conform to two rules: end of the constructor. -.. c:function:: void _PyObject_GC_TRACK(PyObject *op) - - A macro version of :c:func:`PyObject_GC_Track`. It should not be used for - extension modules. - Similarly, the deallocator for the object must conform to a similar pair of rules: @@ -90,10 +85,10 @@ rules: the fields used by the :c:member:`~PyTypeObject.tp_traverse` handler become invalid. -.. c:function:: void _PyObject_GC_UNTRACK(PyObject *op) +.. versionchanged:: 3.8 - A macro version of :c:func:`PyObject_GC_UnTrack`. It should not be used for - extension modules. + The :c:func:`_PyObject_GC_TRACK` and :c:func:`_PyObject_GC_UNTRACK` macros + have been removed from the public C API. The :c:member:`~PyTypeObject.tp_traverse` handler accepts a function parameter of this type: |