gh-125887: Update PyObject_HasAttr exception behavior
Resolve #125887
- Issue: gh-125887
📚 Documentation preview 📚: https://cpython-previews--125907.org.readthedocs.build/
@Damien-Chen, please avoid force-pushes.
I want to rebase and squash my commit, but --force push seems necessary.
Please avoid also rebase, etc. Just add new commits - all going to be squashed in a single commit on merge anyway.
FYI: https://devguide.python.org/getting-started/pull-request-lifecycle/#lifecycle-of-a-pull-request
Thanks @Damien-Chen for the PR, and @hauntsaninja for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. 🐍🍒⛏🤖
GH-128283 is a backport of this pull request to the 3.13 branch.