diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2020-07-18 21:39:02 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-07-18 21:39:02 (GMT) |
commit | 01ab9634601fc1a4f9ac5d72ddc022239d2543fe (patch) | |
tree | 782a37cfafcc6bd12d0036ac36961d6df62c6853 /Misc/NEWS.d/next | |
parent | 27b811057ff5e93b68798e278c88358123efdc71 (diff) | |
download | cpython-01ab9634601fc1a4f9ac5d72ddc022239d2543fe.zip cpython-01ab9634601fc1a4f9ac5d72ddc022239d2543fe.tar.gz cpython-01ab9634601fc1a4f9ac5d72ddc022239d2543fe.tar.bz2 |
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>
Diffstat (limited to 'Misc/NEWS.d/next')
-rw-r--r-- | Misc/NEWS.d/next/Core and Builtins/2020-07-18-08-15-32.bpo-41295.pu8Ezo.rst | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Misc/NEWS.d/next/Core and Builtins/2020-07-18-08-15-32.bpo-41295.pu8Ezo.rst b/Misc/NEWS.d/next/Core and Builtins/2020-07-18-08-15-32.bpo-41295.pu8Ezo.rst new file mode 100644 index 0000000..d61fd8f --- /dev/null +++ b/Misc/NEWS.d/next/Core and Builtins/2020-07-18-08-15-32.bpo-41295.pu8Ezo.rst @@ -0,0 +1,3 @@ +Resolve a regression in CPython 3.8.4 where defining "__setattr__" in a +multi-inheritance setup and calling up the hierarchy chain could fail +if builtins/extension types were involved in the base types. |