summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2018-11-13 12:14:56 (GMT)
committerGitHub <noreply@github.com>2018-11-13 12:14:56 (GMT)
commit60a6baef4005a32fb4cf45e15942ea18e59ecf19 (patch)
tree63781064e7acff1ebffaeb47c627460dc84ede78
parent60cf26528b931215160a53fd61836dbe4f036009 (diff)
downloadcpython-60a6baef4005a32fb4cf45e15942ea18e59ecf19.zip
cpython-60a6baef4005a32fb4cf45e15942ea18e59ecf19.tar.gz
cpython-60a6baef4005a32fb4cf45e15942ea18e59ecf19.tar.bz2
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 1a6be91e6fd65ce9cb88cbbbb193db7e92ec6076. (cherry picked from commit 55b4771d5d18d5ff7c095aa1ab750fe0c8bb5e67) Co-authored-by: Victor Stinner <vstinner@redhat.com>
-rw-r--r--Doc/c-api/gcsupport.rst6
1 files changed, 6 insertions, 0 deletions
diff --git a/Doc/c-api/gcsupport.rst b/Doc/c-api/gcsupport.rst
index 7f54b6a..472cd93 100644
--- a/Doc/c-api/gcsupport.rst
+++ b/Doc/c-api/gcsupport.rst
@@ -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: