-
-
Notifications
You must be signed in to change notification settings - Fork 32.3k
gh-127190: Fix local_setattro() error handling #127366
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
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead.
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.
The fix and test both look fine, but how come we're skipping a blurb entry?
I don't think that regular users pass objects with a compare function which always compare to true. If you use |
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.
LGTM
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.
Thank you!
Thanks @vstinner for the PR 🌮🎉.. I'm working now to backport this PR to: 3.12, 3.13. |
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead. (cherry picked from commit 20657fb) Co-authored-by: Victor Stinner <[email protected]>
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead. (cherry picked from commit 20657fb) Co-authored-by: Victor Stinner <[email protected]>
GH-127367 is a backport of this pull request to the 3.13 branch. |
GH-127368 is a backport of this pull request to the 3.12 branch. |
…27368) gh-127190: Fix local_setattro() error handling (GH-127366) Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead. (cherry picked from commit 20657fb) Co-authored-by: Victor Stinner <[email protected]>
|
I don't think that's related. |
…27367) gh-127190: Fix local_setattro() error handling (GH-127366) Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead. (cherry picked from commit 20657fb) Co-authored-by: Victor Stinner <[email protected]>
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead.
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead.
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead.
asyncio.events._running_loop.__setattr__
with invalid name #127190