]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-44263: Py_TPFLAGS_HAVE_GC requires tp_traverse (GH-26463)
authorVictor Stinner <vstinner@python.org>
Tue, 1 Jun 2021 21:37:12 +0000 (23:37 +0200)
committerGitHub <noreply@github.com>
Tue, 1 Jun 2021 21:37:12 +0000 (23:37 +0200)
commitee7637596d8de25f54261bbeabc602d31e74f482
tree24f75c9ad452832b9a40c77fa758916a53c4c757
parentfcda0f508ead26581a77108de19b278c4d062dc4
bpo-44263: Py_TPFLAGS_HAVE_GC requires tp_traverse (GH-26463)

The PyType_Ready() function now raises an error if a type is defined
with the Py_TPFLAGS_HAVE_GC flag set but has no traverse function
(PyTypeObject.tp_traverse).
Doc/whatsnew/3.11.rst
Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst [new file with mode: 0644]
Objects/typeobject.c