]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246)
authorSam Gross <colesbury@gmail.com>
Wed, 27 Oct 2021 19:15:13 +0000 (15:15 -0400)
committerGitHub <noreply@github.com>
Wed, 27 Oct 2021 19:15:13 +0000 (21:15 +0200)
commit35e1ff38ee67ee543d9fcb268c3552c5397f9b3f
tree4bcb6ac31c2957fb9c848193b37fca294d259ee5
parent4776b07d178b2800374f5c15da182f1215756205
bpo-28737: Document when tp_dealloc should call PyObject_GC_UnTrack() (GH-29246)

Objects that support garbage collection ("container" objects) should
call PyObject_GC_UnTrack() from their destructors before clearing any
fields which may point to other "container" objects.
Doc/c-api/gcsupport.rst
Doc/c-api/typeobj.rst
Doc/extending/newtypes.rst