GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||
GeezerVison is showing github.com — gh-141510: Support frozendict in pprint by vstinner · Pull Request #144908 · python/cpython Conversation
|
|
cc @freddrake |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What about frozendict views?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
frozendict views are standard dict views. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: devdanzin <[email protected]>
|
I completed the PR. Please review again.
I added multiple tests on keys(), values() and items(). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
LGTM if all new code is covered by tests.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| return "{%s}" % ", ".join(components), readable, recursive | ||
| rep = "{%s}" % ", ".join(components) | ||
| if is_frozendict: | ||
| rep = f"{object.__class__.__name__}({rep})" |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Is it covered by tests?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
This line is coverted by test_basic_line_wrap() and test_same_as_repr() tests. If I modify the code to raise an exception, both tests fail.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Merged. Thanks for reviews! Thanks for your contribution @devdanzin! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Co-authored-by: devdanzin <[email protected]>
Co-authored-by: devdanzin <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.