-
-
Notifications
You must be signed in to change notification settings - Fork 32.1k
gh-96352: Set AttributeError context in _PyObject_GenericGetAttrWithDict #96353
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Hi, thanks for you contribution! You need to add a news entry, see the failing test details.
Or use https://blurb-it.herokuapp.com/
I also think that adding a test case for this won't hurt.
Hi, thanks for the review! Test and news entry added. |
Thanks @philg314 for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11. |
Thanks for the PR @philg314 🎉 |
…rWithDict (pythonGH-96353) (cherry picked from commit b9634ac) Co-authored-by: philg314 <[email protected]>
GH-96682 is a backport of this pull request to the 3.11 branch. |
GH-96683 is a backport of this pull request to the 3.10 branch. |
…rWithDict (pythonGH-96353) (cherry picked from commit b9634ac) Co-authored-by: philg314 <[email protected]>
…ict (GH-96353) (cherry picked from commit b9634ac) Co-authored-by: philg314 <[email protected]>
…ict (GH-96353) (cherry picked from commit b9634ac) Co-authored-by: philg314 <[email protected]>
Thanks for the reviews @sobolevn and @pablogsal and thanks for merging @pablogsal! |
This causes AttributeErrors's
name
andobj
to be set inobject.__getattribute__
.Ping @pablogsal, author of #16856
object.__getattribute__
does not setname
andobj
ofAttributeError
#96352