Skip to content

Conversation

@iritkatriel
Copy link
Member

@iritkatriel iritkatriel commented Jul 15, 2023

Copy link
Member

@gvanrossum gvanrossum left a 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. :-)

Copy link
Member

@FFY00 FFY00 left a 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.

@gvanrossum
Copy link
Member

I don’t think there are any cases where repr() is wrong, are there?

@FFY00
Copy link
Member

FFY00 commented Jul 15, 2023

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.

@iritkatriel iritkatriel added the stdlib Standard Library Python modules in the Lib/ directory label Jul 16, 2023
@iritkatriel iritkatriel merged commit 5ecedbd into python:main Jul 17, 2023
@iritkatriel iritkatriel deleted the opcode branch July 25, 2023 18:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

stdlib Standard Library Python modules in the Lib/ directory

Projects

None yet

Development

Successfully merging this pull request may close these issues.

sysconfig imports pprint which imports the world

5 participants