]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-40217: Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types...
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 28 May 2020 15:12:23 +0000 (08:12 -0700)
committerGitHub <noreply@github.com>
Thu, 28 May 2020 15:12:23 +0000 (08:12 -0700)
commitbcbe5c59dde5fcb9ad21991c2afd91837b14bbd5
tree9952d8e5d30daad42d284486a79c89705d0a34e7
parent1d82f003678816ff8dd822452ec91669844d2d09
bpo-40217:  Ensure Py_VISIT(Py_TYPE(self)) is always called for PyType_FromSpec types (reverts GH-19414) (GH-20264)

Heap types now always visit the type in tp_traverse. See added docs for details.

This reverts commit 0169d3003be3d072751dd14a5c84748ab63a249f.

Automerge-Triggered-By: @encukou
(cherry picked from commit 1cf15af9a6f28750f37b08c028ada31d38e818dd)

Co-authored-by: Pablo Galindo <Pablogsal@gmail.com>
12 files changed:
Doc/c-api/typeobj.rst
Doc/whatsnew/3.9.rst
Misc/NEWS.d/next/Core and Builtins/2020-05-23-01-15-51.bpo-40217.jZsHTc.rst [new file with mode: 0644]
Modules/_abc.c
Modules/_curses_panel.c
Modules/_json.c
Modules/_struct.c
Modules/xxlimited.c
Objects/structseq.c
Objects/typeobject.c
Parser/asdl_c.py
Python/Python-ast.c