René's URL Explorer Experiment


Title: gh-149189: Modern defaults for `pprint` by hugovk · Pull Request #149190 · python/cpython · GitHub

Open Graph Title: gh-149189: Modern defaults for `pprint` by hugovk · Pull Request #149190 · python/cpython

X Title: gh-149189: Modern defaults for `pprint` by hugovk · Pull Request #149190 · python/cpython

Description: Given: from pprint import pprint config = { "database": { "host": "db.example.com", "port": 5432, "options": { "connect_timeout": 5, "pool_size": 10, "ssl": True, "sslmode": "verify-full", }, }, "logging": { "level": "INFO", "file": "/var/log/app.log", "handlers": { "console": {"enabled": True}, "file": {"rotate": True, "max_bytes": 1048576}, }, }, } print("===== expand=False =====") print() pprint(config) print() print("===== expand=True =====") print() pprint(config, expand=True) main produces: {'database': {'host': 'db.example.com', 'options': {'connect_timeout': 5, 'pool_size': 10, 'ssl': True, 'sslmode': 'verify-full'}, 'port': 5432}, 'logging': {'file': '/var/log/app.log', 'handlers': {'console': {'enabled': True}, 'file': {'max_bytes': 1048576, 'rotate': True}}, 'level': 'INFO'}} This PR produces: { 'database': { 'host': 'db.example.com', 'options': {'connect_timeout': 5, 'pool_size': 10, 'ssl': True, 'sslmode': 'verify-full'}, 'port': 5432, }, 'logging': { 'file': '/var/log/app.log', 'handlers': {'console': {'enabled': True}, 'file': {'max_bytes': 1048576, 'rotate': True}}, 'level': 'INFO', }, } Issue: gh-149189

Open Graph Description: Given: from pprint import pprint config = { "database": { "host": "db.example.com", "port": 5432, "options": { ...

X Description: Given: from pprint import pprint config = { "database": { "host": "db.example.com", "port": 5432, ...

Opengraph URL: https://github.com/python/cpython/pull/149190

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/files(.:format)
route-controllerpull_requests
route-actionfiles
fetch-noncev2:043606e7-6b83-935d-37a6-2cae6837d6ca
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idEA00:279B75:90FDCB:C3C271:6A530DEA
html-safe-nonce0960ceec79130451fc15fae11c5219aea8926104ab04718d73637d34cadff66d
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJFQTAwOjI3OUI3NTo5MEZEQ0I6QzNDMjcxOjZBNTMwREVBIiwidmlzaXRvcl9pZCI6IjgxMDM4NzI0NzA1ODU2NDI0NzQiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmac35d4d36813834aa25104baee542256c3836da598ec19f4d3a608a492a072c74f
hovercard-subject-tagpull_request:3609991498
github-keyboard-shortcutsrepository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot
google-site-verificationApib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I
octolytics-urlhttps://collector.github.com/github/collect
analytics-location///pull_requests/show/files
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/149190/files
twitter:imagehttps://avatars.githubusercontent.com/u/1324225?s=400&v=4
twitter:cardsummary_large_image
og:imagehttps://avatars.githubusercontent.com/u/1324225?s=400&v=4
og:image:altGiven: from pprint import pprint config = { "database": { "host": "db.example.com", "port": 5432, "options": { ...
og:site_nameGitHub
og:typeobject
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-preview
diff-viewunified
go-importgithub.com/python/cpython git https://github.com/python/cpython.git
octolytics-dimension-user_id1525981
octolytics-dimension-user_loginpython
octolytics-dimension-repository_id81598961
octolytics-dimension-repository_nwopython/cpython
octolytics-dimension-repository_publictrue
octolytics-dimension-repository_is_forkfalse
octolytics-dimension-repository_network_root_id81598961
octolytics-dimension-repository_network_root_nwopython/cpython
turbo-body-classeslogged-out env-production page-responsive full-width
disable-turbotrue
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
release07a982c1d40157c619b364352b704c3ce66bb332
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://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 AIhttps://github.com/features/copilot
GitHub Copilot appDirect agents from issue to mergehttps://github.com/features/ai/github-app
MCP RegistryNewIntegrate external toolshttps://github.com/mcp
ActionsAutomate any workflowhttps://github.com/features/actions
CodespacesInstant dev environmentshttps://github.com/features/codespaces
IssuesPlan and track workhttps://github.com/features/issues
Code ReviewManage code changeshttps://github.com/features/code-review
GitHub Advanced SecurityFind and fix vulnerabilitieshttps://github.com/security/advanced-security
Code securitySecure your code as you buildhttps://github.com/security/advanced-security/code-security
Secret protectionStop leaks before they starthttps://github.com/security/advanced-security/secret-protection
Why GitHubhttps://github.com/why-github
Documentationhttps://docs.github.com
Bloghttps://github.blog
Changeloghttps://github.blog/changelog
Marketplacehttps://github.com/marketplace
View all featureshttps://github.com/features
Enterpriseshttps://github.com/enterprise
Small and medium teamshttps://github.com/team
Startupshttps://github.com/enterprise/startups
Nonprofitshttps://github.com/solutions/industry/nonprofits
App Modernizationhttps://github.com/solutions/use-case/app-modernization
DevSecOpshttps://github.com/solutions/use-case/devsecops
DevOpshttps://github.com/solutions/use-case/devops
CI/CDhttps://github.com/solutions/use-case/ci-cd
View all use caseshttps://github.com/solutions/use-case
Healthcarehttps://github.com/solutions/industry/healthcare
Financial serviceshttps://github.com/solutions/industry/financial-services
Manufacturinghttps://github.com/solutions/industry/manufacturing
Governmenthttps://github.com/solutions/industry/government
View all industrieshttps://github.com/solutions/industry
View all solutionshttps://github.com/solutions
AIhttps://github.com/resources/articles?topic=ai
Software Developmenthttps://github.com/resources/articles?topic=software-development
DevOpshttps://github.com/resources/articles?topic=devops
Securityhttps://github.com/resources/articles?topic=security
View all topicshttps://github.com/resources/articles
Customer storieshttps://github.com/customer-stories
Events & webinarshttps://github.com/resources/events
Ebooks & reportshttps://github.com/resources/whitepapers
Business insightshttps://github.com/solutions/executive-insights
GitHub Skillshttps://skills.github.com
Documentationhttps://docs.github.com
Customer supporthttps://support.github.com
Community forumhttps://github.com/orgs/community/discussions
Trust centerhttps://github.com/trust-center
Partnershttps://github.com/partners
View all resourceshttps://github.com/resources
GitHub SponsorsFund open source developershttps://github.com/open-source/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/open-source/accelerator
GitHub Starshttps://stars.github.com
Archive Programhttps://archiveprogram.github.com
Topicshttps://github.com/topics
Trendinghttps://github.com/trending
Collectionshttps://github.com/collections
Enterprise platformAI-powered developer platformhttps://github.com/enterprise
GitHub Advanced SecurityEnterprise-grade security featureshttps://github.com/security/advanced-security
Copilot for BusinessEnterprise-grade AI featureshttps://github.com/features/copilot/copilot-business
Premium SupportEnterprise-grade 24/7 supporthttps://github.com/enterprise/premium-support
Pricinghttps://github.com/pricing
Search syntax tipshttps://docs.github.com/search-github/github-code-search/understanding-github-code-search-syntax
documentationhttps://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
Reloadhttps://github.com/python/cpython/pull/149190/files
Reloadhttps://github.com/python/cpython/pull/149190/files
Reloadhttps://github.com/python/cpython/pull/149190/files
Please reload this pagehttps://github.com/python/cpython/pull/149190/files
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://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 servicehttps://docs.github.com/terms
privacy statementhttps://docs.github.com/privacy
Sign inhttps://github.com/login?return_to=%2Fpython%2Fcpython%2Fissues%2Fnew%2Fchoose
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
hugovk:3.15-pprint-defaultshttps://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 pagehttps://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 pagehttps://github.com/python/cpython/pull/149190/files
Please reload this pagehttps://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.rsthttps://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.rsthttps://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 pagehttps://github.com/python/cpython/pull/149190/files
https://github.com/python/cpython/blob/main/.github/CODEOWNERS#L397
Doc/library/ssl.rsthttps://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.rsthttps://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.rsthttps://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.rsthttps://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.pyhttps://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 pagehttps://github.com/python/cpython/pull/149190/files
Please reload this pagehttps://github.com/python/cpython/pull/149190/files
https://github.com
Termshttps://docs.github.com/site-policy/github-terms/github-terms-of-service
Privacyhttps://docs.github.com/site-policy/privacy-policies/github-privacy-statement
Securityhttps://github.com/security
Statushttps://www.githubstatus.com/
Communityhttps://github.community/
Docshttps://docs.github.com/
Contacthttps://support.github.com?tags=dotcom-footer

Viewport: width=device-width


URLs of crawlers that visited me.