René's URL Explorer Experiment


Title: gh-145217: Add colour to `pprint` output by hugovk · Pull Request #145218 · python/cpython · GitHub

Open Graph Title: gh-145217: Add colour to `pprint` output by hugovk · Pull Request #145218 · python/cpython

X Title: gh-145217: Add colour to `pprint` output by hugovk · Pull Request #145218 · python/cpython

Description: The Python programming language. Contribute to python/cpython development by creating an account on GitHub.

Open Graph Description: Example: import pprint data = ["spam", "eggs", ("lumberjack", "knights"), "ni", 42, None] data.insert(0, data) pprint.pp(data) pprint.pprint(data...

X Description: Example: import pprint data = ["spam", "eggs", ("lumberjack", "knights"), "ni", 42, None] data.insert(0, d...

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

X: @github

direct link

Domain: github.com

route-pattern/:user_id/:repository/pull/:id/commits(.:format)
route-controllerpull_requests
route-actioncommits
fetch-noncev2:69b37c61-b724-7c5c-7de0-4df208b67994
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-id9A3A:27C161:A82460:F2B3AC:6A54A32E
html-safe-nonce10ae62d10ff40cb105b658c42db439152ee8bda23d807271a2a8cdeac861aac2
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5QTNBOjI3QzE2MTpBODI0NjA6RjJCM0FDOjZBNTRBMzJFIiwidmlzaXRvcl9pZCI6IjQ5NDc1NzcwMDg0OTY2MTYyMzgiLCJyZWdpb25fZWRnZSI6ImlhZCIsInJlZ2lvbl9yZW5kZXIiOiJpYWQifQ==
visitor-hmacecbe6fd8bcfe6b245b9c3512fda9ca7af7909c5de8153969def61191085cf89e
hovercard-subject-tagpull_request:3325997906
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/commits
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/python/cpython/pull/145218/commits
twitter:imagehttps://opengraph.githubassets.com/eb123b345945c36804eca6b88a56a8f0886c076f833f41c8b14b6453bd9862fd/python/cpython/pull/145218
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/eb123b345945c36804eca6b88a56a8f0886c076f833f41c8b14b6453bd9862fd/python/cpython/pull/145218
og:image:altExample: import pprint data = ["spam", "eggs", ("lumberjack", "knights"), "ni", 42, None] data.insert(0, data) pprint.pp(data) pprint.pprint(data...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernamehugovk
hostnamegithub.com
expected-hostnamegithub.com
Noneb9a586c06a05a7a86fc7e3f4dbd03e42f6869085879aa184aa6369456dbd50fb
turbo-cache-controlno-cache
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
disable-turbofalse
browser-stats-urlhttps://api.github.com/_private/browser/stats
browser-errors-urlhttps://api.github.com/_private/browser/errors
releasef8cfff6384f62259baea531c7f58bc7040f8dd92
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/145218/commits#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F145218%2Fcommits
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%2F145218%2Fcommits
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%2Fcommits&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/145218/commits
Reloadhttps://github.com/python/cpython/pull/145218/commits
Reloadhttps://github.com/python/cpython/pull/145218/commits
Please reload this pagehttps://github.com/python/cpython/pull/145218/commits
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/145218/commits
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
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
hugovk:3.15-pprint-colourhttps://github.com/hugovk/cpython/tree/3.15-pprint-colour
Conversationhttps://github.com/python/cpython/pull/145218
Commits15 (15)https://github.com/python/cpython/pull/145218/commits
Checkshttps://github.com/python/cpython/pull/145218/checks
Files changedhttps://github.com/python/cpython/pull/145218/files
gh-145217: Add colour to pprint outputhttps://github.com/python/cpython/pull/145218/commits#top
hugovkhttps://github.com/hugovk
python:mainhttps://github.com/python/cpython/tree/main
hugovk:3.15-pprint-colourhttps://github.com/hugovk/cpython/tree/3.15-pprint-colour
Add colour to pprint outputhttps://github.com/python/cpython/pull/145218/commits/0906a8d6d75b6cb05aa8cd25f888609cdd19a352
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
0906a8dhttps://github.com/python/cpython/pull/145218/commits/0906a8d6d75b6cb05aa8cd25f888609cdd19a352
https://github.com/python/cpython/tree/0906a8d6d75b6cb05aa8cd25f888609cdd19a352
Add blurbhttps://github.com/python/cpython/pull/145218/commits/71739fe9e205535ea24618fe444135d86307621b
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
71739fehttps://github.com/python/cpython/pull/145218/commits/71739fe9e205535ea24618fe444135d86307621b
https://github.com/python/cpython/tree/71739fe9e205535ea24618fe444135d86307621b
Merge remote-tracking branch 'upstream/main' into 3.15-pprint-colourhttps://github.com/python/cpython/pull/145218/commits/1aac2602f290d9d8b26487f7720374efe60e4ee5
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
1aac260https://github.com/python/cpython/pull/145218/commits/1aac2602f290d9d8b26487f7720374efe60e4ee5
https://github.com/python/cpython/tree/1aac2602f290d9d8b26487f7720374efe60e4ee5
Pass escape=False for pprint to keep real control charshttps://github.com/python/cpython/pull/145218/commits/e11465be1f26981907caa6656cf42a316b2d5e01
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
e11465bhttps://github.com/python/cpython/pull/145218/commits/e11465be1f26981907caa6656cf42a316b2d5e01
https://github.com/python/cpython/tree/e11465be1f26981907caa6656cf42a316b2d5e01
Merge branch 'main' into 3.15-pprint-colourhttps://github.com/python/cpython/pull/145218/commits/7208828ba164fe0aebad754da363bd429d2d7754
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
7208828https://github.com/python/cpython/pull/145218/commits/7208828ba164fe0aebad754da363bd429d2d7754
https://github.com/python/cpython/tree/7208828ba164fe0aebad754da363bd429d2d7754
Change back line endings to LFhttps://github.com/python/cpython/pull/145218/commits/fede255c72a50b4fd8513ccdce5c5605f57068ad
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
fede255https://github.com/python/cpython/pull/145218/commits/fede255c72a50b4fd8513ccdce5c5605f57068ad
https://github.com/python/cpython/tree/fede255c72a50b4fd8513ccdce5c5605f57068ad
Fall back to monochrome if _colorize/_pyrepl.utils don't reify (import)https://github.com/python/cpython/pull/145218/commits/3597fbd57ee72bb1b974a3ee1d57531ff0b67a54
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
3597fbdhttps://github.com/python/cpython/pull/145218/commits/3597fbd57ee72bb1b974a3ee1d57531ff0b67a54
https://github.com/python/cpython/tree/3597fbd57ee72bb1b974a3ee1d57531ff0b67a54
Update NEWShttps://github.com/python/cpython/pull/145218/commits/0df1f64d2e245fba0cbb2deca07e08667015dbb2
hugovkhttps://github.com/python/cpython/commits?author=hugovk
sunmy2019https://github.com/python/cpython/commits?author=sunmy2019
0df1f64https://github.com/python/cpython/pull/145218/commits/0df1f64d2e245fba0cbb2deca07e08667015dbb2
https://github.com/python/cpython/tree/0df1f64d2e245fba0cbb2deca07e08667015dbb2
Avoid calling _format twicehttps://github.com/python/cpython/pull/145218/commits/c3392e6f94cac45d0325e3e4ee4e3934096ce76d
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
c3392e6https://github.com/python/cpython/pull/145218/commits/c3392e6f94cac45d0325e3e4ee4e3934096ce76d
https://github.com/python/cpython/tree/c3392e6f94cac45d0325e3e4ee4e3934096ce76d
Add testhttps://github.com/python/cpython/pull/145218/commits/028ca36404d78aacca212469ab6b9d831b834bc4
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
028ca36https://github.com/python/cpython/pull/145218/commits/028ca36404d78aacca212469ab6b9d831b834bc4
https://github.com/python/cpython/tree/028ca36404d78aacca212469ab6b9d831b834bc4
Update testhttps://github.com/python/cpython/pull/145218/commits/fccaa120c05a19d0b2a3285b9ea0495fb9898334
hugovkhttps://github.com/python/cpython/commits?author=hugovk
sunmy2019https://github.com/python/cpython/commits?author=sunmy2019
fccaa12https://github.com/python/cpython/pull/145218/commits/fccaa120c05a19d0b2a3285b9ea0495fb9898334
https://github.com/python/cpython/tree/fccaa120c05a19d0b2a3285b9ea0495fb9898334
Don't add colour if there's already colourhttps://github.com/python/cpython/pull/145218/commits/e95aab21d4bcacd1aa27fa8652749175a0fd70f5
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
e95aab2https://github.com/python/cpython/pull/145218/commits/e95aab21d4bcacd1aa27fa8652749175a0fd70f5
https://github.com/python/cpython/tree/e95aab21d4bcacd1aa27fa8652749175a0fd70f5
Refactor other lazy imports with keywordhttps://github.com/python/cpython/pull/145218/commits/1d05505207b1a3e4debf6ac6685299c9ab227028
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
1d05505https://github.com/python/cpython/pull/145218/commits/1d05505207b1a3e4debf6ac6685299c9ab227028
https://github.com/python/cpython/tree/1d05505207b1a3e4debf6ac6685299c9ab227028
Merge remote-tracking branch 'upstream/main' into 3.15-pprint-colourhttps://github.com/python/cpython/pull/145218/commits/d907d383e0116a1a8697ba69866700ec853b577c
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
d907d38https://github.com/python/cpython/pull/145218/commits/d907d383e0116a1a8697ba69866700ec853b577c
https://github.com/python/cpython/tree/d907d383e0116a1a8697ba69866700ec853b577c
Skip colour for non-Python https://github.com/python/cpython/pull/145218/commits/f6c4dd9f203da01dbce00dde0bc80e4ec7df0237
https://github.com/hugovk
hugovkhttps://github.com/python/cpython/commits?author=hugovk
f6c4dd9https://github.com/python/cpython/pull/145218/commits/f6c4dd9f203da01dbce00dde0bc80e4ec7df0237
https://github.com/python/cpython/tree/f6c4dd9f203da01dbce00dde0bc80e4ec7df0237
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.