| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:043606e7-6b83-935d-37a6-2cae6837d6ca |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | EA00:279B75:90FDCB:C3C271:6A530DEA |
| html-safe-nonce | 0960ceec79130451fc15fae11c5219aea8926104ab04718d73637d34cadff66d |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTAwOjI3OUI3NTo5MEZEQ0I6QzNDMjcxOjZBNTMwREVBIiwidmlzaXRvcl9pZCI6IjgxMDM4NzI0NzA1ODU2NDI0NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ== |
| visitor-hmac | 35d4d36813834aa25104baee542256c3836da598ec19f4d3a608a492a072c74f |
| hovercard-subject-tag | pull_request:3609991498 |
| 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/149190/files |
| twitter:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/1324225?s=400&v=4 |
| og:image:alt | Given:
from pprint import pprint
config = {
"database": {
"host": "db.example.com",
"port": 5432,
"options": {
... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | b9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb |
| 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 | 07a982c1d40157c619b364352b704c3ce66bb332 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| Skip to content | https://github.com/python/cpython/pull/149190/files#start-of-content |
|
| https://github.com/ |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149190%2Ffiles |
| GitHub CopilotWrite better code with AI | https://github.com/features/copilot |
| GitHub Copilot appDirect agents from issue to merge | https://github.com/features/ai/github-app |
| MCP RegistryNewIntegrate external tools | https://github.com/mcp |
| ActionsAutomate any workflow | https://github.com/features/actions |
| CodespacesInstant dev environments | https://github.com/features/codespaces |
| IssuesPlan and track work | https://github.com/features/issues |
| Code ReviewManage code changes | https://github.com/features/code-review |
| GitHub Advanced SecurityFind and fix vulnerabilities | https://github.com/security/advanced-security |
| Code securitySecure your code as you build | https://github.com/security/advanced-security/code-security |
| Secret protectionStop leaks before they start | https://github.com/security/advanced-security/secret-protection |
| Why GitHub | https://github.com/why-github |
| Documentation | https://docs.github.com |
| Blog | https://github.blog |
| Changelog | https://github.blog/changelog |
| Marketplace | https://github.com/marketplace |
| View all features | https://github.com/features |
| Enterprises | https://github.com/enterprise |
| Small and medium teams | https://github.com/team |
| Startups | https://github.com/enterprise/startups |
| Nonprofits | https://github.com/solutions/industry/nonprofits |
| App Modernization | https://github.com/solutions/use-case/app-modernization |
| DevSecOps | https://github.com/solutions/use-case/devsecops |
| DevOps | https://github.com/solutions/use-case/devops |
| CI/CD | https://github.com/solutions/use-case/ci-cd |
| View all use cases | https://github.com/solutions/use-case |
| 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 |
| View all industries | https://github.com/solutions/industry |
| View all solutions | https://github.com/solutions |
| AI | https://github.com/resources/articles?topic=ai |
| Software Development | https://github.com/resources/articles?topic=software-development |
| DevOps | https://github.com/resources/articles?topic=devops |
| Security | https://github.com/resources/articles?topic=security |
| View all topics | https://github.com/resources/articles |
| Customer stories | https://github.com/customer-stories |
| Events & webinars | https://github.com/resources/events |
| Ebooks & reports | https://github.com/resources/whitepapers |
| Business insights | https://github.com/solutions/executive-insights |
| GitHub Skills | https://skills.github.com |
| Documentation | https://docs.github.com |
| Customer support | https://support.github.com |
| Community forum | https://github.com/orgs/community/discussions |
| Trust center | https://github.com/trust-center |
| Partners | https://github.com/partners |
| View all resources | https://github.com/resources |
| GitHub SponsorsFund open source developers | https://github.com/open-source/sponsors |
| Security Lab | https://securitylab.github.com |
| Maintainer Community | https://maintainers.github.com |
| Accelerator | https://github.com/open-source/accelerator |
| GitHub Stars | https://stars.github.com |
| Archive Program | https://archiveprogram.github.com |
| Topics | https://github.com/topics |
| Trending | https://github.com/trending |
| Collections | https://github.com/collections |
| Enterprise platformAI-powered developer platform | https://github.com/enterprise |
| GitHub Advanced SecurityEnterprise-grade security features | 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 |
| Pricing | https://github.com/pricing |
| Search syntax tips | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
| documentation | https://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax |
|
Sign in
| https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F149190%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/149190/files |
| Reload | https://github.com/python/cpython/pull/149190/files |
| Reload | https://github.com/python/cpython/pull/149190/files |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
|
python
| https://github.com/python |
| cpython | https://github.com/python/cpython |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
|
Notifications
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Fork
35k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Star
73.8k
| https://github.com/login?return_to=%2Fpython%2Fcpython |
|
Code
| https://github.com/python/cpython |
|
Issues
5k+
| https://github.com/python/cpython/issues |
|
Pull requests
2.3k
| https://github.com/python/cpython/pulls |
|
Actions
| https://github.com/python/cpython/actions |
|
Projects
| https://github.com/python/cpython/projects |
|
Security and quality
0
| https://github.com/python/cpython/security |
|
Insights
| https://github.com/python/cpython/pulse |
|
Code
| https://github.com/python/cpython |
|
Issues
| https://github.com/python/cpython/issues |
|
Pull requests
| 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/pulse |
| 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 |
| hugovk | https://github.com/hugovk |
| python:main | https://github.com/python/cpython/tree/main |
| hugovk:3.15-pprint-defaults | https://github.com/hugovk/cpython/tree/3.15-pprint-defaults |
|
Conversation
16
| https://github.com/python/cpython/pull/149190 |
|
Commits
10
| https://github.com/python/cpython/pull/149190/commits |
|
Checks
53
| https://github.com/python/cpython/pull/149190/checks |
|
Files changed
| https://github.com/python/cpython/pull/149190/files |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
|
gh-149189: Modern defaults for pprint
| https://github.com/python/cpython/pull/149190/files#top |
|
Show all changes
10 commits
| https://github.com/python/cpython/pull/149190/files |
|
3f04477
Default pprint to expand=True indent=4 width=88
hugovk Apr 14, 2026
| https://github.com/python/cpython/pull/149190/commits/3f04477024b375f38f724767eb71822667ffc656 |
|
bc0d9da
Update test results
hugovk Apr 30, 2026
| https://github.com/python/cpython/pull/149190/commits/bc0d9dae80b84f54c2b501aea5b20ec53490cd21 |
|
67c9eaa
Note old defaults
hugovk May 2, 2026
| https://github.com/python/cpython/pull/149190/commits/67c9eaa0e08d9d9ec1161a4b9ec99a6cc963f045 |
|
4b6680b
Update defaults in doctest
hugovk May 2, 2026
| https://github.com/python/cpython/pull/149190/commits/4b6680b8a606a8b092154752c7cf9c8fa7edf55c |
|
47d0a5d
Update versionchanged
hugovk May 2, 2026
| https://github.com/python/cpython/pull/149190/commits/47d0a5d55f69c05ed26d5e44d9607409b58431cb |
|
3c5d8f4
Remove ValueError if compact=expand=True, compact takes precendence
hugovk May 3, 2026
| https://github.com/python/cpython/pull/149190/commits/3c5d8f40b450f2b797d8545769de993d59f8ff90 |
|
cce0ee4
Add note about compact=False
hugovk May 3, 2026
| https://github.com/python/cpython/pull/149190/commits/cce0ee4641e5140c4806383aca57917b2a0b818c |
|
cfb5a76
Remove expand option, this is now the default
hugovk May 3, 2026
| https://github.com/python/cpython/pull/149190/commits/cfb5a76c9277f60c4258d1fcff5a0144320da5a0 |
|
086603c
Adjust tests to keep a smaller output diff
hugovk May 4, 2026
| https://github.com/python/cpython/pull/149190/commits/086603c05bcb05e90aaa74c9b3df4ba66cca832a |
|
5c9c7a5
Merge branch 'main' into 3.15-pprint-defaults
hugovk May 4, 2026
| https://github.com/python/cpython/pull/149190/commits/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f |
|
Clear filters
| https://github.com/python/cpython/pull/149190/files |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
|
difflib.rst
| https://github.com/python/cpython/pull/149190/files#diff-64337b6d8b3d74a9c7fd776e02911c7606d374d54ae4df9b47a966283584e148 |
|
pprint.rst
| https://github.com/python/cpython/pull/149190/files#diff-a153bfe46de83d06814d4b7f4e5ef1b72bd677ea1678d667423fe68ba8c9da8d |
|
ssl.rst
| https://github.com/python/cpython/pull/149190/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dc |
|
unittest.mock.rst
| https://github.com/python/cpython/pull/149190/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
stdlib2.rst
| https://github.com/python/cpython/pull/149190/files#diff-ebe0edee1e75ff86b44017e69d30bbdcc51dde362e86490ecb571366837c157c |
|
3.15.rst
| https://github.com/python/cpython/pull/149190/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
difflib.py
| https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
|
pprint.py
| https://github.com/python/cpython/pull/149190/files#diff-2de5df6eb7096f61fad8ce401b98985b3e0f1c0710f82120b52b94df45f753be |
|
test_descrtut.py
| https://github.com/python/cpython/pull/149190/files#diff-1ea3df472d80208543d6efe39d25f4e0b5c4636c5f0e33b652d2ab46e46fe831 |
|
test_pickle.py
| https://github.com/python/cpython/pull/149190/files#diff-eabc91c9e7a2586ffc6ca849d6636e74e28825a4515745c280b045dbdf857e39 |
|
test_pprint.py
| https://github.com/python/cpython/pull/149190/files#diff-6e84f83d1d30b8ae8cf576771368b4e513f0d4237089d9007df49d8395240956 |
|
test_stable_abi_ctypes.py
| https://github.com/python/cpython/pull/149190/files#diff-e23b7eb96b17ef58f28bd65875edc3ec27eeb85be4c342d0c2d9c74121a74c0b |
|
testhelpers.py
| https://github.com/python/cpython/pull/149190/files#diff-29c9bac78ef671714bc978cfd033586a1f96df08736194b42b66e5a8fcc08bbe |
|
2026-04-30-18-56-23.gh-issue-149189.mszW10.rst
| https://github.com/python/cpython/pull/149190/files#diff-f0e422231b9ecb0f495ef6e669f4509b933129bb77e27a724315dc4be54310ec |
| Doc/library/difflib.rst | https://github.com/python/cpython/pull/149190/files#diff-64337b6d8b3d74a9c7fd776e02911c7606d374d54ae4df9b47a966283584e148 |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/library/difflib.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-64337b6d8b3d74a9c7fd776e02911c7606d374d54ae4df9b47a966283584e148 |
|
| https://github.com/python/cpython/pull/149190/files#diff-64337b6d8b3d74a9c7fd776e02911c7606d374d54ae4df9b47a966283584e148 |
| Doc/library/pprint.rst | https://github.com/python/cpython/pull/149190/files#diff-a153bfe46de83d06814d4b7f4e5ef1b72bd677ea1678d667423fe68ba8c9da8d |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/library/pprint.rst |
|
Open in desktop
| https://desktop.github.com |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L397 |
| Doc/library/ssl.rst | https://github.com/python/cpython/pull/149190/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dc |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/library/ssl.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dc |
|
| https://github.com/python/cpython/pull/149190/files#diff-df0c7115ade453321aadb2eb534941f2ec87c4b52563bae70421918dce5435dc |
| Doc/library/unittest.mock.rst | https://github.com/python/cpython/pull/149190/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/library/unittest.mock.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
|
| https://github.com/python/cpython/pull/149190/files#diff-e24490db2cf4ecf0da79ab5fe9aa0ab7de1b333424356e079a5d56a263d2082a |
| Doc/tutorial/stdlib2.rst | https://github.com/python/cpython/pull/149190/files#diff-ebe0edee1e75ff86b44017e69d30bbdcc51dde362e86490ecb571366837c157c |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/tutorial/stdlib2.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-ebe0edee1e75ff86b44017e69d30bbdcc51dde362e86490ecb571366837c157c |
|
| https://github.com/python/cpython/pull/149190/files#diff-ebe0edee1e75ff86b44017e69d30bbdcc51dde362e86490ecb571366837c157c |
|
| https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L116 |
| Doc/whatsnew/3.15.rst | https://github.com/python/cpython/pull/149190/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Doc/whatsnew/3.15.rst |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
|
| https://github.com/python/cpython/pull/149190/files#diff-bd7a9c5b54eeb2b40e6db5e48e8d79d309d8738e776a40918773c6840189edf9 |
| Lib/difflib.py | https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
|
View file
| https://github.com/hugovk/cpython/blob/5c9c7a5689b4b4b13a0f93ce90d98a97fecfaa9f/Lib/difflib.py |
|
Open in desktop
| https://desktop.github.com |
| https://github.co/hiddenchars |
| https://github.com/python/cpython/pull/149190/{{ revealButtonHref }} |
|
| https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
|
| https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
|
| https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
|
| https://github.com/python/cpython/pull/149190/files#diff-4517a87c0d1215c3a18d0a4dffffc879ff09b86c522a5396a28c60090a397436 |
| Please reload this page | https://github.com/python/cpython/pull/149190/files |
| Please reload this page | https://github.com/python/cpython/pull/149190/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 |