]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
GH-95589: Dont crash when subclassing extension classes with multiple inheritance...
authorMark Shannon <mark@hotpy.org>
Wed, 17 Aug 2022 11:50:53 +0000 (12:50 +0100)
committerGitHub <noreply@github.com>
Wed, 17 Aug 2022 11:50:53 +0000 (12:50 +0100)
commitb73e3b6d4a6c505f2869ae4d0a4a93241450cf32
tree4225e01b62828975bd57361b2d1137bae9aa754e
parent0f2b469ce1a6f123ad9e151b1771651b3e1d2de6
GH-95589: Dont crash when subclassing extension classes with multiple inheritance (GH-96028)

* Treat tp_weakref and tp_dictoffset like other opaque slots for multiple inheritance.

* Document Py_TPFLAGS_MANAGED_DICT and Py_TPFLAGS_MANAGED_WEAKREF in what's new.
Doc/whatsnew/3.12.rst
Lib/test/test_capi.py
Misc/NEWS.d/next/C API/2022-08-16-16-54-42.gh-issue-95589.6xE1ar.rst [new file with mode: 0644]
Objects/typeobject.c