Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork32k
gh-90117: handle dict and mapping views in pprint#30135
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 ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes from1 commit
Commits
Show all changes
45 commits Select commitHold shift + click to select a range
f7835ca
Teach pprint about dict views with PrettyPrinter._pprint_dict_view an…
devdanzin1eda2d5
Merge branch 'main' of https://github.com/python/cpython into pprint_…
devdanzin9500a74
Use _private names for _dict_*_view attributes of PrettyPrinter.
devdanzin653cdea
Use explicit 'items' keyword when calling _pprint_dict_view from _ppr…
devdanzin884f224
📜🤖 Added by blurb_it.
blurb-it[bot]48be1e9
Properly indent code.
devdanzin9745491
WIP: Improve tests and make short views sortable.
devdanzin7edb29d
fix typo
merwok7d2fa0f
Merge branch 'main' into pprint_dict_view
merwok32773ce
Merge branch 'main' into pprint_dict_view
arhadthedev15dd266
Address the failing Docs check
arhadthedev6898bc4
Merge branch 'python:main' into pprint_dict_view
devdanzin67e3f14
Add tests for collections.abc.[Keys|Items|Mapping|Values]View support…
devdanzin65e0be2
Add support for collections.abc.[Keys|Items|Mapping|Values]View in pp…
devdanzinc91af09
Split _pprint_dict_view into _pprint_abc_view, so pretty-printing nor…
devdanzin5b2341c
Simplify redundant code.
devdanzina9ff3df
Add collections.abc views to some existing pprint tests.
devdanzin4c67166
Remove TODO.
devdanzinbfa9868
Test that views from collection.UserDict are correctly formatted by p…
devdanzin148b469
Handle recursive dict and ABC views.
devdanzin34abce7
Test that subclasses of ABC views work in pprint.
devdanzin09839a6
Test dict views coming from collections.Counter.
devdanzin091c3bb
Test ABC views coming from collections.ChainMap.
devdanzin29655a0
Test odict views coming from collections.OrderedDict.
devdanzin7ecb456
Merge branch 'main' into pprint_dict_view
devdanzin646816a
Rename _pprint_abc_view to _pprint_mapping_abc_view.
devdanzin7537a52
Add pprint test for mapping ABC views where ._mapping has a custom __…
devdanzin7a6769d
When a mapping ABC view has a ._mapping that defines a custom __repr_…
devdanzin7dcb9cf
Merge branch 'python:main' into pprint_dict_view
devdanzin06babe4
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzin58692d2
Add tests for ABC mapping views subclasses that don't replace __repr_…
devdanzin8e605c1
Simplify the pretty printing of ABC mapping views.
devdanzin7e27e02
Merge branch 'python:main' into pprint_dict_view
devdanzineb66934
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzin1dc4ab2
Add a test for depth handling when pretty printing dict views.
devdanzinf267452
Fix checking whether the view type is a subclass of an items view, ad…
devdanzin3867338
Move construction of the views __repr__ set out of _safe_repr.
devdanzin1a609d0
Merge branch 'main' into pprint_dict_view
devdanzinbca6f6f
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzind020f86
Merge branch 'python:main' into pprint_dict_view
devdanzinee7b521
Merge branch 'python:main' into pprint_dict_view
devdanzin7009887
Merge branch 'python:main' into pprint_dict_view
devdanzin9499115
Merge branch 'main' into pprint_dict_view
devdanzin692c0cd
Merge branch 'main' into pprint_dict_view
AA-Turner90e069c
Merge branch 'main' into pprint_dict_view
gpsheadFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
Merge branch 'python:main' into pprint_dict_view
- Loading branch information
Uh oh!
There was an error while loading.Please reload this page.
commitd020f86dfb4b434f0533efab13e2c59415a97e8c
There are no files selected for viewing
This merge commit was added into this branch cleanly.
There are no new changes to show, but you can stillview the diff.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.