Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork33.7k
gh-106789: avoid importing pprint from sysconfig#106790
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Uh oh!
There was an error while loading.Please reload this page.
Conversation
gvanrossum left a comment
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.
Too bad about the limerick. Maybe we can ask ChatGPT to write the commit message as a limerick. :-)
FFY00 left a comment
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.
AFAICTrepr for strings should result in (mostly) valid Python code representing the string in question, so I believe this patch is correct. At least, any edge case we could run into withrepr we would likely run into withpprint anyway.
gvanrossum commentedJul 15, 2023
I don’t think there are any cases where repr() is wrong, are there? |
FFY00 commentedJul 15, 2023 • edited
Loading Uh oh!
There was an error while loading.Please reload this page.
edited
Uh oh!
There was an error while loading.Please reload this page.
I don't think so either, but I have seen too many edge cases in situations like this, so am not confident saying there aren't any here. I'm fairly confident that this change is okay, though. |
Uh oh!
There was an error while loading.Please reload this page.
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Uh oh!
There was an error while loading.Please reload this page.
Fixes#106789.