Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

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

Merged
rhettinger merged 4 commits into
python:mainpython/cpython:mainfrom
sobolevn:issue-101446sobolevn/cpython:issue-101446Copy head branch name to clipboard
Feb 8, 2023
Merged

gh-101446: Change repr of collections.OrderedDict#101661
rhettinger merged 4 commits into
python:mainpython/cpython:mainfrom
sobolevn:issue-101446sobolevn/cpython:issue-101446Copy head branch name to clipboard

Conversation

@sobolevn

@sobolevn sobolevn commented Feb 7, 2023

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 sobolevn marked this pull request as ready for review February 7, 2023 21:29
@sobolevn sobolevn requested a review from rhettinger as a code owner February 7, 2023 21:29
@rhettinger rhettinger merged commit 790ff6b into python:main Feb 8, 2023
@Gouvernathor

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 ?

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

Morty Proxy This is a proxified and sanitized view of the page, visit original site.