diff options
author | Victor Stinner <vstinner@python.org> | 2021-06-01 21:37:12 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-01 21:37:12 (GMT) |
commit | ee7637596d8de25f54261bbeabc602d31e74f482 (patch) | |
tree | 24f75c9ad452832b9a40c77fa758916a53c4c757 /Misc/NEWS.d | |
parent | fcda0f508ead26581a77108de19b278c4d062dc4 (diff) | |
download | cpython-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/NEWS.d')
-rw-r--r-- | Misc/NEWS.d/next/C API/2021-05-31-11-31-13.bpo-44263.8mIOfV.rst | 4 |
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. |