FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

gh-101446: Change `repr` of `collections.OrderedDict` by sobolevn · Pull Request #101661 · python/cpython · GitHub

/ cpython Public

gh-101446: Change repr of collections.OrderedDict - #101661

Merged
rhettinger merged 4 commits into
python:mainfrom
sobolevn:issue-101446
Feb 8, 2023
Merged

gh-101446: Change repr of collections.OrderedDict#101661
rhettinger merged 4 commits into
python:mainfrom
sobolevn:issue-101446

Conversation

sobolevn commented Feb 7, 2023
edited
Loading

Copy link
Copy Markdown
Member

Now it is:

>>> from collections import OrderedDict
>>> OrderedDict({1: 'a', 2: 'b'})
OrderedDict({1: 'a', 2: 'b'})

Openning this as a draft to see what tests will fail :)

sobolevn marked this pull request as ready for review February 7, 2023 21:29
sobolevn requested a review from rhettinger as a code owner February 7, 2023 21:29
rhettinger merged commit 790ff6b into python:main Feb 8, 2023

Copy link
Copy Markdown
Contributor

Out of curiosity, why not using super().repr() instead of recreating a whole new dict ? Wouldn't it save quite some time ?

This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants


Back | FazBrowse Home | New Git URL