-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
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 our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
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.
Too bad about the limerick. Maybe we can ask ChatGPT to write the commit message as a limerick. :-)
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.
AFAICT repr
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 with repr
we would likely run into with pprint
anyway.
I don’t think there are any cases where repr() is wrong, are there? |
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. |
Co-authored-by: Inada Naoki <songofacandy@gmail.com>
Fixes #106789.