]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-41295: Reimplement the Carlo Verre "hackcheck" (GH-21528)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Sat, 18 Jul 2020 21:39:02 +0000 (14:39 -0700)
committerGitHub <noreply@github.com>
Sat, 18 Jul 2020 21:39:02 +0000 (14:39 -0700)
commit01ab9634601fc1a4f9ac5d72ddc022239d2543fe
tree782a37cfafcc6bd12d0036ac36961d6df62c6853
parent27b811057ff5e93b68798e278c88358123efdc71
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
(cherry picked from commit c53b310e5926266ce267c44a168165cacd786d6e)

Co-authored-by: scoder <stefan_ml@behnel.de>
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