-
-
Notifications
You must be signed in to change notification settings - Fork 31.6k
Update reprlib to use set literals #67013
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
Comments
Currently reprlib outputs: >>> reprlib.repr(set('supercalifragilisticexpialidocious'))
"set(['a', 'c', 'd', 'e', 'f', 'g', ...])" This should be:
|
Here's a patch to use set literals and frozenset({'a'}) in reprlib. |
That looks great. Go ahead an apply (with a MISC/NEWS entry and an update to the example on line 22 of Docs/tutorial/stdlib2.rst). |
Thanks for the review, Raymond. Patch updated:
|
New changeset 147fda13bec8 by Raymond Hettinger in branch 'default': |
Thanks for the patch. |
The repr of empty array() should be fixed too. |
New changeset cf5b910ac4c8 by Raymond Hettinger in branch 'default': |
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
GitHub fields:
bugs.python.org fields:
The text was updated successfully, but these errors were encountered: