]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-95707: Fix uses of `Py_TPFLAGS_MANAGED_DICT` (GH-95854)
authorMark Shannon <mark@hotpy.org>
Mon, 15 Aug 2022 11:29:27 +0000 (12:29 +0100)
committerGitHub <noreply@github.com>
Mon, 15 Aug 2022 11:29:27 +0000 (12:29 +0100)
commit3ef3c6306def489ba9115f0a8a57ab1e99795a5c
treef74aa199f7051f57b4577f9a920cf982766a65b4
parent4a7f5a55dc88c14cef880ae38a96018514ca9d83
GH-95707: Fix uses of `Py_TPFLAGS_MANAGED_DICT` (GH-95854)

* Make sure that tp_dictoffset is correct with Py_TPFLAGS_MANAGED_DICT is set.

* Avoid traversing managed dict twice when subclassing class with Py_TPFLAGS_MANAGED_DICT set.
Lib/test/test_capi.py
Lib/test/test_sys.py
Misc/NEWS.d/next/C API/2022-08-03-13-01-57.gh-issue-92678.DLwONN.rst [new file with mode: 0644]
Modules/_testcapi/heaptype.c
Objects/object.c
Objects/typeobject.c
Tools/gdb/libpython.py