]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
authorscoder <stefan_ml@behnel.de>
Sat, 18 Jul 2020 21:19:50 +0000 (23:19 +0200)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2020 21:19:50 +0000 (14:19 -0700)
commitc53b310e5926266ce267c44a168165cacd786d6e
tree26741e4be5b2718fde92877507c111e9a8d00958
parent8ca8a2e8fb068863c1138f07e3098478ef8be12e
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)

Walk down the MRO backwards to find the type that originally defined the final `tp_setattro`, then make sure we are not jumping over intermediate C-level bases with the Python-level call.

Automerge-Triggered-By: @gvanrossum
Lib/test/test_descr.py
Misc/NEWS.d/next/Core and Builtins/2020-07-18-08-15-32.bpo-41295.pu8Ezo.rst [new file with mode: 0644]
Objects/typeobject.c