René's URL Explorer Experiment


Title: gh-130664: support '_' (just as ',') in Decimal's formatting by skirpichev · Pull Request #132155 · python/cpython · GitHub

Open Graph Title: gh-130664: support '_' (just as ',') in Decimal's formatting by skirpichev · Pull Request #132155 · python/cpython

X Title: gh-130664: support '_' (just as ',') in Decimal's formatting by skirpichev · Pull Request #132155 · python/cpython

Description: >>> from _decimal import Decimal as D >>> format(D(1234567), '_') '1_234_567' >>> format(D(1234567), '020_') '0_000_000_001_234_567' >>> format(D('1234.56'), '07_') '1_234.56' >>> format(D('1.23456...

Open Graph Description: >>> from _decimal import Decimal as D >>> format(D(1234567), '_') '1_234_567' >>> format(D(1234567), '020_') '0_000_000_001_234_567' >&...

X Description: >>> from _decimal import Decimal as D >>> format(D(1234567), '_') '1_234_567' >>> format(D(1234567), &...

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

X: @github

direct link

Domain: github.com

route-pattern/_view_fragments/voltron/pull_requests/show/:user_id/:repository/:id/pull_request_layout(.:format)
route-controllervoltron_pull_requests_fragments
route-actionpull_request_layout
fetch-noncev2:8be75225-1c2f-7fe4-a0e6-d7b68778b6c0
current-catalog-service-hashae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b
request-idCCCE:236F3C:109BB39:16E69A5:696A983D
html-safe-nonceb802511d7facc6a4b76ec05fc370773cb6ac8d99d3fe7e55003fde547fc45329
visitor-payloadeyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDQ0NFOjIzNkYzQzoxMDlCQjM5OjE2RTY5QTU6Njk2QTk4M0QiLCJ2aXNpdG9yX2lkIjoiNzU1NjM3MDU0ODE0NTE2NjM5NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9
visitor-hmac2172d137a0d284d174b900cfa69ef88611146679be3d013af775192f0d71c059
hovercard-subject-tagpull_request:2441617572
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///voltron/pull_requests_fragments/pull_request_layout
fb:app_id1401488693436528
apple-itunes-appapp-id=1477376905, app-argument=https://github.com/_view_fragments/voltron/pull_requests/show/python/cpython/132155/pull_request_layout
twitter:imagehttps://opengraph.githubassets.com/f3278db04908a3f3603e2e079bd509b24a27c06dc44a96ebdedf7e61ddcc2aa0/python/cpython/pull/132155
twitter:cardsummary_large_image
og:imagehttps://opengraph.githubassets.com/f3278db04908a3f3603e2e079bd509b24a27c06dc44a96ebdedf7e61ddcc2aa0/python/cpython/pull/132155
og:image:alt>>> from _decimal import Decimal as D >>> format(D(1234567), '_') '1_234_567' >>> format(D(1234567), '020_') '0_000_000_001_234_567' >&...
og:image:width1200
og:image:height600
og:site_nameGitHub
og:typeobject
og:author:usernameskirpichev
hostnamegithub.com
expected-hostnamegithub.com
Nonec0d8175e41e0e55b9e984c935b24b808cabab919dd3174aa45dac3ef503ed1af
turbo-cache-controlno-preview
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
release99aab454e5ddc8df30805fb76c114c3008a15842
ui-targetfull
theme-color#1e2327
color-schemelight dark

Links:

Skip to contenthttps://github.com/python/cpython/pull/132155#start-of-content
https://github.com/
Sign in https://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132155
GitHub CopilotWrite better code with AIhttps://github.com/features/copilot
GitHub SparkBuild and deploy intelligent appshttps://github.com/features/spark
GitHub ModelsManage and compare promptshttps://github.com/features/models
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
GitHub SponsorsFund open source developershttps://github.com/sponsors
Security Labhttps://securitylab.github.com
Maintainer Communityhttps://maintainers.github.com
Acceleratorhttps://github.com/accelerator
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/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%2F132155
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%2Fvoltron%2Fpull_requests_fragments%2Fpull_request_layout&source=header-repo&source_repo=python%2Fcpython
Reloadhttps://github.com/python/cpython/pull/132155
Reloadhttps://github.com/python/cpython/pull/132155
Reloadhttps://github.com/python/cpython/pull/132155
python https://github.com/python
cpythonhttps://github.com/python/cpython
Please reload this pagehttps://github.com/python/cpython/pull/132155
Notifications https://github.com/login?return_to=%2Fpython%2Fcpython
Fork 33.9k https://github.com/login?return_to=%2Fpython%2Fcpython
Star 71.1k 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.1k https://github.com/python/cpython/pulls
Actions https://github.com/python/cpython/actions
Projects 31 https://github.com/python/cpython/projects
Security Uh oh! There was an error while loading. Please reload this page. https://github.com/python/cpython/security
Please reload this pagehttps://github.com/python/cpython/pull/132155
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 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
Jump to bottomhttps://github.com/python/cpython/pull/132155#issue-comment-box
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:decimal-underscore-sep/130664https://github.com/skirpichev/cpython/tree/decimal-underscore-sep/130664
gh-130664: support '_' (just as ',') in Decimal's formatting https://github.com/python/cpython/pull/132155#top
ambvhttps://github.com/ambv
python:mainhttps://github.com/python/cpython/tree/main
skirpichev:decimal-underscore-sep/130664https://github.com/skirpichev/cpython/tree/decimal-underscore-sep/130664
Conversation 8 https://github.com/python/cpython/pull/132155
Commits 2 https://github.com/python/cpython/pull/132155/commits
Checks 41 https://github.com/python/cpython/pull/132155/checks
Files changed https://github.com/python/cpython/pull/132155/files
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.co/hiddenchars
https://github.com/python/cpython/pull/{{ revealButtonHref }}
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Apr 6, 2025https://github.com/python/cpython/pull/132155#issue-2974900666
Please reload this pagehttps://github.com/python/cpython/pull/132155
Undocumented handling of thousands separator for floats and differences wrt Decimal #130664https://github.com/python/cpython/issues/130664
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/skirpichev
pythongh-130664https://github.com/python/cpython/issues/130664
: support '_' (just as ',') in Decimal's formattinghttps://github.com/python/cpython/pull/132155/commits/1ae18f5963365525cf1506bb4efb616ccff19869
1ae18f5https://github.com/python/cpython/pull/132155/commits/1ae18f5963365525cf1506bb4efb616ccff19869
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 6, 2025https://github.com/python/cpython/pull/132155#event-17142982677
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Apr 6, 2025 https://github.com/python/cpython/pull/132155#ref-issue-2886411650
Undocumented handling of thousands separator for floats and differences wrt Decimal #130664 https://github.com/python/cpython/issues/130664
https://github.com/apps/python-cla-bot
python-cla-bothttps://github.com/apps/python-cla-bot
Apr 6, 2025https://github.com/python/cpython/pull/132155#issuecomment-2781436569
https://cla.python.org/
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Apr 6, 2025 https://github.com/python/cpython/pull/132155#pullrequestreview-2745199085
View reviewed changes https://github.com/python/cpython/pull/132155/files/1ae18f5963365525cf1506bb4efb616ccff19869
Lib/test/test_decimal.pyhttps://github.com/python/cpython/pull/132155/files/1ae18f5963365525cf1506bb4efb616ccff19869#diff-0bf3efdde952043078e322013c2459632397c6a9b312d49e70ae4a9791e2a1d8
StanFromIrelandhttps://github.com/StanFromIreland
Apr 6, 2025https://github.com/python/cpython/pull/132155#discussion_r2030211234
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132155
skirpichevhttps://github.com/skirpichev
Apr 7, 2025https://github.com/python/cpython/pull/132155#discussion_r2030359339
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/StanFromIreland
StanFromIrelandhttps://github.com/StanFromIreland
Apr 6, 2025 https://github.com/python/cpython/pull/132155#pullrequestreview-2745200859
View reviewed changes https://github.com/python/cpython/pull/132155/files/1ae18f5963365525cf1506bb4efb616ccff19869
StanFromIrelandhttps://github.com/StanFromIreland
https://github.com/python/cpython/pull/132155#pullrequestreview-2745200859
Learn morehttps://docs.github.com/articles/managing-disruptive-comments/#hiding-a-comment
Please reload this pagehttps://github.com/python/cpython/pull/132155
Misc/NEWS.d/next/Library/2025-04-06-14-34-29.gh-issue-130664.JF2r-U.rsthttps://github.com/python/cpython/pull/132155/files/1ae18f5963365525cf1506bb4efb616ccff19869#diff-ddaa5a71ee05f28e14e6cb6972da230eda7c1f3c35c749cf52b17acf1c9a86cf
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/skirpichev
https://github.com/StanFromIreland
Update Misc/NEWS.d/next/Library/2025-04-06-14-34-29.gh-issue-130664.J…https://github.com/python/cpython/pull/132155/commits/e0dbe8900303566edb6d177e875049044e1a5a15
e0dbe89https://github.com/python/cpython/pull/132155/commits/e0dbe8900303566edb6d177e875049044e1a5a15
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Apr 7, 2025https://github.com/python/cpython/pull/132155#issuecomment-2781842504
Format Specification Mini-Languagehttps://docs.python.org/3.14/library/string.html#format-specification-mini-language
#128698https://github.com/python/cpython/pull/128698
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/ambv
ambvhttps://github.com/ambv
e10fe81https://github.com/python/cpython/commit/e10fe81cc6ae0979938eb3925139d56a74c620e3
Apr 15, 2025https://github.com/python/cpython/pull/132155#event-17266767885
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
awaiting review https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22awaiting%20review%22
Apr 15, 2025https://github.com/python/cpython/pull/132155#event-17266768636
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
April 15, 2025 11:20https://github.com/python/cpython/pull/132155#event-17267367782
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
Jul 14, 2025 https://github.com/python/cpython/pull/132155#ref-issue-3226863745
, works with Decimal() against the doc of **Format Specification Mini-Language** #136636 https://github.com/python/cpython/issues/136636
https://github.com/skirpichev
skirpichevhttps://github.com/skirpichev
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jul 14, 2025https://github.com/python/cpython/pull/132155#event-18615785458
https://github.com/apps/miss-islington-app
miss-islington-apphttps://github.com/apps/miss-islington-app
Jul 14, 2025https://github.com/python/cpython/pull/132155#issuecomment-3069055580
@skirpichevhttps://github.com/skirpichev
@ambvhttps://github.com/ambv
Please reload this pagehttps://github.com/python/cpython/pull/132155
miss-islingtonhttps://github.com/miss-islington
Jul 14, 2025 https://github.com/python/cpython/pull/132155#ref-commit-26be90d
https://github.com/skirpichev
https://github.com/miss-islington
pythongh-130664https://github.com/python/cpython/issues/130664
: support '_' (just as ',') in Decimal's formatting (https://github.com/miss-islington/cpython/commit/26be90d67de7bf5855a1312113288bcb1ee12051
p…https://github.com/python/cpython/pull/132155
26be90dhttps://github.com/miss-islington/cpython/commit/26be90d67de7bf5855a1312113288bcb1ee12051
…ythonGH-132155https://github.com/python/cpython/pull/132155
e10fe81https://github.com/miss-islington/cpython/commit/e10fe81cc6ae0979938eb3925139d56a74c620e3
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
Jul 14, 2025https://github.com/python/cpython/pull/132155#issuecomment-3069056904
GH-136649https://github.com/python/cpython/pull/136649
3.13 branchhttps://github.com/python/cpython/tree/3.13
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/apps/bedevere-app
bedevere-apphttps://github.com/apps/bedevere-app
needs backport to 3.13 https://github.com/python/cpython/issues?q=state%3Aopen%20label%3A%22needs%20backport%20to%203.13%22
Jul 14, 2025https://github.com/python/cpython/pull/132155#event-18615788662
picnixzhttps://github.com/picnixz
Jul 14, 2025 https://github.com/python/cpython/pull/132155#ref-commit-2a6617d
https://github.com/miss-islington
https://github.com/skirpichev
[3.13]https://github.com/python/cpython/commit/2a6617de48f3d279e9c5f7971f44dc63a63bf12e
gh-130664https://github.com/python/cpython/issues/130664
: support '_' (just as ',') in Decimal's formatting (https://github.com/python/cpython/commit/2a6617de48f3d279e9c5f7971f44dc63a63bf12e
G…https://github.com/python/cpython/pull/132155
2a6617dhttps://github.com/python/cpython/commit/2a6617de48f3d279e9c5f7971f44dc63a63bf12e
…H-132155https://github.com/python/cpython/pull/132155
#136649https://github.com/python/cpython/pull/136649
gh-130664https://github.com/python/cpython/issues/130664
GH-132155https://github.com/python/cpython/pull/132155
e10fe81https://github.com/python/cpython/commit/e10fe81cc6ae0979938eb3925139d56a74c620e3
Sign up for freehttps://github.com/join?source=comment-repo
Sign in to commenthttps://github.com/login?return_to=https%3A%2F%2Fgithub.com%2Fpython%2Fcpython%2Fpull%2F132155
https://github.com/StanFromIreland
StanFromIreland https://github.com/StanFromIreland
https://github.com/python/cpython/pull/132155/files/1ae18f5963365525cf1506bb4efb616ccff19869
Please reload this pagehttps://github.com/python/cpython/pull/132155
https://github.com/skirpichev
https://github.com/StanFromIreland
https://github.com/ambv
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.