summaryrefslogtreecommitdiffstats
path: root/Misc
diff options
context:
space:
mode:
authorVictor Stinner <vstinner@python.org>2021-06-01 21:37:12 (GMT)
committerGitHub <noreply@github.com>2021-06-01 21:37:12 (GMT)
commitee7637596d8de25f54261bbeabc602d31e74f482 (patch)
tree24f75c9ad452832b9a40c77fa758916a53c4c757 /Misc
parentfcda0f508ead26581a77108de19b278c4d062dc4 (diff)
downloadcpython-ee7637596d8de25f54261bbeabc602d31e74f482.zip
cpython-ee7637596d8de25f54261bbeabc602d31e74f482.tar.gz
cpython-ee7637596d8de25f54261bbeabc602d31e74f482.tar.bz2
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).
Diffstat (limited to 'Misc')
-rw-r--r--Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst b/Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst
new file mode 100644
index 0000000..aa831a2
--- /dev/null
+++ b/Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst
@@ -0,0 +1,4 @@
+The :c:func:`PyType_Ready` function now raises an error if a type is defined
+with the :const:`Py_TPFLAGS_HAVE_GC` flag set but has no traverse function
+(:c:member:`PyTypeObject.tp_traverse`).
+Patch by Victor Stinner.