gh-127190: Fix local_setattro() error handling#127366
Conversation
Don't make the assumption that the 'name' argument is a string. Use repr() to format the 'name' argument instead.
ZeroIntensity
left a comment
There was a problem hiding this comment.
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 |
|
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 <vstinner@python.org>
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 <vstinner@python.org>
|
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. |
|
|
I don't think that's related. |
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