| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:f48b8b1e-8ca1-5e7a-d07c-a182eca34ca8 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | E4C2:2A0045:335EE9B:440A009:6B0039F5 |
| html-safe-nonce | d7fac96a1b5c4df35854e6df021872ba4d6e7d7163ef5305ccdd0486c9470416 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFNEMyOjJBMDA0NTozMzVFRTlCOjQ0MEEwMDk6NkIwMDM5RjUiLCJ2aXNpdG9yX2lkIjoiNTI2NTA1MTM3MDMwMTQzODQ1MyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 5a442a26fe1f925e42e61dc6e5cefa3d697d545b405371c7def59a2121d99b65 |
| hovercard-subject-tag | pull_request:804265429 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | ///pull_requests/show/files |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/30135/files |
| twitter:image | https://avatars.githubusercontent.com/u/74280297?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/74280297?s=400&v=4 |
| og:image:alt | This PR adds two methods to PrettyPrinter: one to handle dict_keys and dict_values (sorted with _safe_key), another to handle dict_items (sorted using _safe_tuple).
Design and implementation open... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7d0829bbde9e48b2486cb5dd6d147896eb01d32134627091f818958a935ef3f0 |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/python/cpython git https://github.com/python/cpython.git |
| octolytics-dimension-user_id | 1525981 |
| octolytics-dimension-user_login | python |
| octolytics-dimension-repository_id | 81598961 |
| octolytics-dimension-repository_nwo | python/cpython |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 81598961 |
| octolytics-dimension-repository_network_root_nwo | python/cpython |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | f3f3a43ca095cdea3abbb394112e971f9fdb94fa |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/30135/files#start-of-content |
| https://github.com/ |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30135%2Ffiles |
| GitHubRepository hosting, code review, and collaboration | https://github.com/platform |
| CopilotAI coding agent for tasks, projects, and automated work | https://github.com/features/copilot |
| ActionsCI/CD and automation | https://github.com/features/actions |
| Code QualityQuality analysis, fixes, and enforcement | https://github.com/features/code-quality |
| CodespacesCloud development environments | https://github.com/features/codespaces |
| Code SecurityVulnerability detection and remediation | https://github.com/security/advanced-security/code-security |
| Secret ProtectionSecret scanning and leak prevention | https://github.com/security/advanced-security/secret-protection |
| All Features | https://github.com/features |
| Documentation | https://docs.github.com/en |
| Training | https://learn.github.com/skills |
| Certifications | https://learn.github.com/credentials |
| Build with Copilot | https://github.com/features/ai |
| Customize Copilot | https://docs.github.com/en/copilot/how-tos/copilot-on-github/customize-copilot/customize-copilot-overview |
| Integrations | https://github.com/marketplace |
| Trending repos | https://github.com/trending |
| GitHub Sponsors | https://github.com/open-source/sponsors |
| Developer articles | https://github.com/resources/articles |
| ChangelogYour source for the latest features, improvements, and fixes across GitHub products, all in one place. | https://github.blog/changelog/ |
| Enterprises | https://github.com/enterprise |
| Team | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| Healthcare | https://github.com/solutions/industry/healthcare |
| Financial services | https://github.com/solutions/industry/financial-services |
| Manufacturing | https://github.com/solutions/industry/manufacturing |
| Government | https://github.com/solutions/industry/government |
| See all industries | https://github.com/solutions/industry |
| Why GitHub | https://github.com/why-github |
| Customer Stories | https://github.com/customer-stories |
| Business insights | https://github.com/solutions/executive-insights |
| Trust Center | https://github.com/trust-center |
| GitHub Advanced SecurityEnterprise-grade code security | https://github.com/security/advanced-security |
| Copilot for businessEnterprise-grade AI features | https://github.com/features/copilot/copilot-business |
| Premium SupportEnterprise-grade 24/7 support | https://github.com/enterprise/premium-support |
| Documentation | https://docs.github.com/en |
| Resource center | https://github.com/resources |
| Blog | https://github.blog/ |
| Events & webinars | https://github.com/resources/events |
| Community Forum | https://github.com/orgs/community/discussions |
| Customer Stories | https://github.com/customer-stories |
| Integrations | https://github.com/marketplace |
| Customer support | https://help.github.com/ |
| Training | https://learn.github.com/skills |
| GitHub Status | https://www.githubstatus.com/ |
| About | https://github.com/about |
| Partners | https://github.com/partners |
| Changelog | https://github.blog/changelog/ |
| GitHub UniverseThe event for developers, by developers — talks, workshops, and what’s next for GitHub. | https://githubuniverse.com/ |
| Pricing | https://github.com/pricing |
| Sign in | https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F30135%2Ffiles |
| Sign up | https://github.com/signup?ref_cta=Sign+up&ref_loc=header+logged+out&ref_page=%2F%3Cuser-name%3E%2F%3Crepo-name%3E%2Fpull_requests%2Fshow%2Ffiles&source=header-repo&source_repo=python%2Fcpython |
| Reload | https://github.com/python/cpython/pull/30135/files |
| Reload | https://github.com/python/cpython/pull/30135/files |
| Reload | https://github.com/python/cpython/pull/30135/files |
| python | https://github.com/python |
| cpython | https://github.com/python/cpython |
| Code | https://github.com/python/cpython |
| Issues5k+ (5k+) | https://github.com/python/cpython/issues |
| Pull requests2.4k (2.4k) | https://github.com/python/cpython/pulls |
| Actions | https://github.com/python/cpython/actions |
| Projects | https://github.com/python/cpython/projects |
| Security and quality | https://github.com/python/cpython/security |
| Insights | https://github.com/python/cpython/insights |
| Sign up for GitHub
| https://github.com/signup?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| terms of service | https://docs.github.com/terms |
| privacy statement | https://docs.github.com/privacy |
| Sign in | https://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose |
| gpshead | https://github.com/gpshead |
| python:main | https://github.com/python/cpython/tree/main |
| devdanzin:pprint_dict_view | https://github.com/devdanzin/cpython/tree/pprint_dict_view |
|
Conversation
35
| https://github.com/python/cpython/pull/30135 |
|
Commits
45
| https://github.com/python/cpython/pull/30135/commits |
|
Checks
0
| https://github.com/python/cpython/pull/30135/checks |
|
Files changed
| https://github.com/python/cpython/pull/30135/files |
| Please reload this page | https://github.com/python/cpython/pull/30135/files |
|
gh-90117: handle dict and mapping views in pprint
| https://github.com/python/cpython/pull/30135/files#top |
|
Show all changes
45 commits
| https://github.com/python/cpython/pull/30135/files |
|
f7835ca
Teach pprint about dict views with PrettyPrinter._pprint_dict_view an…
devdanzin Dec 16, 2021
| https://github.com/python/cpython/pull/30135/commits/f7835caceaebfa97c88bb5d4b58b11370c005b60 |
|
1eda2d5
Merge branch 'main' of https://github.com/python/cpython into pprint_…
devdanzin Dec 17, 2021
| https://github.com/python/cpython/pull/30135/commits/1eda2d5a56c44bafc956a16749641b21b18a4f1f |
|
9500a74
Use _private names for _dict_*_view attributes of PrettyPrinter.
devdanzin Dec 17, 2021
| https://github.com/python/cpython/pull/30135/commits/9500a7491d46905491a9b856d8b85258f7d99731 |
|
653cdea
Use explicit 'items' keyword when calling _pprint_dict_view from _ppr…
devdanzin Dec 18, 2021
| https://github.com/python/cpython/pull/30135/commits/653cdea1231ff5f9894c4bd18592c45e138d5947 |
|
884f224
📜🤖 Added by blurb_it.
blurb-it[bot] Dec 18, 2021
| https://github.com/python/cpython/pull/30135/commits/884f224b5475a791cfbf349c2ebfb99a77cf25bc |
|
48be1e9
Properly indent code.
devdanzin Jan 19, 2022
| https://github.com/python/cpython/pull/30135/commits/48be1e9408f23dfd1f5cfc4eaf8d78d9583b39a1 |
|
9745491
WIP: Improve tests and make short views sortable.
devdanzin Jan 19, 2022
| https://github.com/python/cpython/pull/30135/commits/974549119a2901caa0c45e8a9c625321e6a14478 |
|
7edb29d
fix typo
merwok Apr 24, 2022
| https://github.com/python/cpython/pull/30135/commits/7edb29d3ee161a662585ac8b1353f6612d0cb6cf |
|
7d2fa0f
Merge branch 'main' into pprint_dict_view
merwok Apr 24, 2022
| https://github.com/python/cpython/pull/30135/commits/7d2fa0f5152b5776994bc81ac9dbbd64f73cfe05 |
|
32773ce
Merge branch 'main' into pprint_dict_view
arhadthedev Mar 4, 2023
| https://github.com/python/cpython/pull/30135/commits/32773cef4cfac87f13176a2767fabaeeecb5f3a2 |
|
15dd266
Address the failing Docs check
arhadthedev Mar 4, 2023
| https://github.com/python/cpython/pull/30135/commits/15dd2663ffd55f8f84aead2c0fd7568c1b405a8e |
|
6898bc4
Merge branch 'python:main' into pprint_dict_view
devdanzin Apr 6, 2024
| https://github.com/python/cpython/pull/30135/commits/6898bc4695ec3f9e557b74716ceddd4130f59ed2 |
|
67e3f14
Add tests for collections.abc.[Keys|Items|Mapping|Values]View support…
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/67e3f14c56c3b4cd0c39cd4edf7f8f0bb3d6a332 |
|
65e0be2
Add support for collections.abc.[Keys|Items|Mapping|Values]View in pp…
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/65e0be20372e20fbc9c3e5651af37550b499c24a |
|
c91af09
Split _pprint_dict_view into _pprint_abc_view, so pretty-printing nor…
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/c91af096fa38a641da03fdf3c849dbfda7330f81 |
|
5b2341c
Simplify redundant code.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/5b2341c11cd7c7de2b45eed25ae8469d3ebc193a |
|
a9ff3df
Add collections.abc views to some existing pprint tests.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/a9ff3dfdb8a40bb3b465ac2c1d5484a3a101e2be |
|
4c67166
Remove TODO.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/4c6716650b13f15b6774ba0cc773a88e124d98d2 |
|
bfa9868
Test that views from collection.UserDict are correctly formatted by p…
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/bfa9868e6524d8861983086a87561ea5125aa2b5 |
|
148b469
Handle recursive dict and ABC views.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/148b4690354bcefc11e8c14391ea7d5769415510 |
|
34abce7
Test that subclasses of ABC views work in pprint.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/34abce71c667554c999b7b6b0b86f2053f4a6e86 |
|
09839a6
Test dict views coming from collections.Counter.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/09839a60fc0e8d74687545c0aaeb80b31ce70fa1 |
|
091c3bb
Test ABC views coming from collections.ChainMap.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/091c3bbe45c69fd003a4d2edadd246aba3451c59 |
|
29655a0
Test odict views coming from collections.OrderedDict.
devdanzin Apr 7, 2024
| https://github.com/python/cpython/pull/30135/commits/29655a03cc0d1943325e4b7f9cf9e2a78f8c767e |
|
7ecb456
Merge branch 'main' into pprint_dict_view
devdanzin Apr 8, 2024
| https://github.com/python/cpython/pull/30135/commits/7ecb45607c8aaf95ddda6b66172f56eeda1ff327 |
|
646816a
Rename _pprint_abc_view to _pprint_mapping_abc_view.
devdanzin Apr 8, 2024
| https://github.com/python/cpython/pull/30135/commits/646816ae4fc957366776acfb91549982749fc150 |
|
7537a52
Add pprint test for mapping ABC views where ._mapping has a custom __…
devdanzin Apr 9, 2024
| https://github.com/python/cpython/pull/30135/commits/7537a52a4e758180ad062aaff9e45ab6cc1392bb |
|
7a6769d
When a mapping ABC view has a ._mapping that defines a custom __repr_…
devdanzin Apr 9, 2024
| https://github.com/python/cpython/pull/30135/commits/7a6769d41f78a7f94e9bac095d4324fa2153dce4 |
|
7dcb9cf
Merge branch 'python:main' into pprint_dict_view
devdanzin Apr 9, 2024
| https://github.com/python/cpython/pull/30135/commits/7dcb9cf9424dc37d60997fa422d102edbf96b39d |
|
06babe4
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzin Apr 9, 2024
| https://github.com/python/cpython/pull/30135/commits/06babe4611fd58e66b6742410a2fe49ebddf7fe9 |
|
58692d2
Add tests for ABC mapping views subclasses that don't replace __repr_…
devdanzin Apr 21, 2024
| https://github.com/python/cpython/pull/30135/commits/58692d2c4b67cc7d6f962fad8739d899f6281751 |
|
8e605c1
Simplify the pretty printing of ABC mapping views.
devdanzin Apr 21, 2024
| https://github.com/python/cpython/pull/30135/commits/8e605c1244133a7cad2ae33830ed86b56c7960ee |
|
7e27e02
Merge branch 'python:main' into pprint_dict_view
devdanzin Apr 21, 2024
| https://github.com/python/cpython/pull/30135/commits/7e27e02643f9b0b111dcfbd1c58c8bb1a0c0f9c6 |
|
eb66934
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzin Apr 21, 2024
| https://github.com/python/cpython/pull/30135/commits/eb66934360dcaa0c2314064481a74e470ef21480 |
|
1dc4ab2
Add a test for depth handling when pretty printing dict views.
devdanzin Apr 21, 2024
| https://github.com/python/cpython/pull/30135/commits/1dc4ab2fd1e24745e67634468f615576f42327e9 |
|
f267452
Fix checking whether the view type is a subclass of an items view, ad…
devdanzin Apr 22, 2024
| https://github.com/python/cpython/pull/30135/commits/f2674524ca8906b5b73874714457ede1c6c2719e |
|
3867338
Move construction of the views __repr__ set out of _safe_repr.
devdanzin Apr 26, 2024
| https://github.com/python/cpython/pull/30135/commits/386733836cd4b023755ce2a9d9445ea5f77595f4 |
|
1a609d0
Merge branch 'main' into pprint_dict_view
devdanzin Apr 26, 2024
| https://github.com/python/cpython/pull/30135/commits/1a609d0953677f845c81405e8561ee29a13bca76 |
|
bca6f6f
Merge remote-tracking branch 'refs/remotes/origin/pprint_dict_view' i…
devdanzin Apr 26, 2024
| https://github.com/python/cpython/pull/30135/commits/bca6f6f54df2ecb0cacc8bf9a63c0450cfc0ae2d |
|
d020f86
Merge branch 'python:main' into pprint_dict_view
devdanzin May 21, 2024
| https://github.com/python/cpython/pull/30135/commits/d020f86dfb4b434f0533efab13e2c59415a97e8c |
|
ee7b521
Merge branch 'python:main' into pprint_dict_view
devdanzin May 30, 2024
| https://github.com/python/cpython/pull/30135/commits/ee7b52196cbea7d794fb2c2675ce910975cfe58f |
|
7009887
Merge branch 'python:main' into pprint_dict_view
devdanzin Jul 1, 2024
| https://github.com/python/cpython/pull/30135/commits/7009887aa22a653a67f6b034cc82ee62a0170bab |
|
9499115
Merge branch 'main' into pprint_dict_view
devdanzin Oct 29, 2024
| https://github.com/python/cpython/pull/30135/commits/9499115925758e43c06ba644a2a521c301e23765 |
|
692c0cd
Merge branch 'main' into pprint_dict_view
AA-Turner Apr 20, 2025
| https://github.com/python/cpython/pull/30135/commits/692c0cd8d139254f7447eb6631ebe7f12809fca2 |
|
90e069c
Merge branch 'main' into pprint_dict_view
gpshead May 20, 2025
| https://github.com/python/cpython/pull/30135/commits/90e069c6c7e072c0ffdf5ed2d294f1863553a4a5 |
|
Clear filters
| https://github.com/python/cpython/pull/30135/files |
| Please reload this page | https://github.com/python/cpython/pull/30135/files |
| Please reload this page | https://github.com/python/cpython/pull/30135/files |
|
pprint.py
| https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
|
test_pprint.py
| https://github.com/python/cpython/pull/30135/files#diff-6e84f83d1d30b8ae8cf576771368b4e513f0d4237089d9007df49d8395240956 |
|
2021-12-18-12-46-20.bpo-45959.vPlr3P.rst
| https://github.com/python/cpython/pull/30135/files#diff-55e47f6e7e5dea905626974ed85ff9095a2257becab7fe047c55f83edc9bcb0f |
| Lib/pprint.py | https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
|
View file
| https://github.com/devdanzin/cpython/blob/90e069c6c7e072c0ffdf5ed2d294f1863553a4a5/Lib/pprint.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/30135/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
| Please reload this page | https://github.com/python/cpython/pull/30135/files |
|
| https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
|
| https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
|
| https://github.com/python/cpython/pull/30135/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
| Please reload this page | https://github.com/python/cpython/pull/30135/files |
|
| https://github.com |
| Terms | https://docs.github.com/site-policy/github-terms/github-terms-of-service |
| Privacy | https://docs.github.com/site-policy/privacy-policies/github-privacy-statement |
| Security | https://github.com/security |
| Status | https://www.githubstatus.com/ |
| Community | https://github.community/ |
| Docs | https://docs.github.com/ |
| Contact | https://support.github.com?tags=dotcom-footer |