Skip to content

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

Merged
merged 3 commits into from
Sep 8, 2022

Conversation

philg314
Copy link
Contributor

@philg314 philg314 commented Aug 28, 2022

This causes AttributeErrors's name and obj to be set in object.__getattribute__.

Ping @pablogsal, author of #16856

Copy link
Member

@sobolevn sobolevn left a 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.

@philg314 philg314 requested a review from iritkatriel as a code owner August 28, 2022 08:52
@philg314
Copy link
Contributor Author

Hi, thanks for the review! Test and news entry added.

@pablogsal pablogsal added needs backport to 3.10 only security fixes needs backport to 3.11 only security fixes labels Sep 8, 2022
@pablogsal pablogsal merged commit b9634ac into python:main Sep 8, 2022
@miss-islington
Copy link
Contributor

Thanks @philg314 for the PR, and @pablogsal for merging it 🌮🎉.. I'm working now to backport this PR to: 3.10, 3.11.
🐍🍒⛏🤖

@pablogsal
Copy link
Member

Thanks for the PR @philg314 🎉

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 8, 2022
@bedevere-bot
Copy link

GH-96682 is a backport of this pull request to the 3.11 branch.

@bedevere-bot bedevere-bot removed needs backport to 3.11 only security fixes needs backport to 3.10 only security fixes labels Sep 8, 2022
@bedevere-bot
Copy link

GH-96683 is a backport of this pull request to the 3.10 branch.

miss-islington pushed a commit to miss-islington/cpython that referenced this pull request Sep 8, 2022
miss-islington added a commit that referenced this pull request Sep 8, 2022
miss-islington added a commit that referenced this pull request Sep 8, 2022
@philg314
Copy link
Contributor Author

philg314 commented Sep 8, 2022

Thanks for the reviews @sobolevn and @pablogsal and thanks for merging @pablogsal!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants