-
-
Notifications
You must be signed in to change notification settings - Fork 30.7k
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
gh-122888: Fix crash on certain calls to str() #122889
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.
Confimed to fix #122888 :)
Does this need to be backported to 3.13?
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, but I think that the tests could be unified with the existing tests.
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 for unifying the tests @JelleZijlstra.
You can also remove the self.assertRaises(TypeError, str, 42, 42, 42)
line from test_constructor
.
Thanks @JelleZijlstra for the PR 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Fixes pythonGH-122888 (cherry picked from commit 53ebb62) Co-authored-by: Jelle Zijlstra <[email protected]>
GH-122947 is a backport of this pull request to the 3.13 branch. |
Fixes #122888
str()
crashes the interpreter #122888