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.23456789'), '_') '1.23456789' >>> format(D('123.456789'), '_%') '12_345.6789%' >>> from _pydecimal 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.23456789'), '_') '1.23456789' >>> format(D('123.456789'), '_%') '12_345.6789%' Issue: gh-130664
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
Domain: github.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:0f3587ce-9543-4098-1e4b-bb4ce1e3a96f |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | C688:178041:1FDEED6:2BB7CF0:696AB5B1 |
| html-safe-nonce | 1275ea2af47abc186f66f9384585f9ff76496a11d93f19efaf230185d3f1d7f1 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiJDNjg4OjE3ODA0MToxRkRFRUQ2OjJCQjdDRjA6Njk2QUI1QjEiLCJ2aXNpdG9yX2lkIjoiMTc4MzQ3NjMxMDkxNTA2OTM2MSIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 83455b753c6eb194540b5881238789b15424ccab824b4c7266fa28eec66fc9ec |
| hovercard-subject-tag | pull_request:2441617572 |
| 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 | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/python/cpython/pull/132155/files |
| twitter:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/2155800?s=400&v=4 |
| 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:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 4fa1799b6a53c2d30c950d74230781bef9e7f61138c72c7727e4b83f0743752b |
| 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 | 41f276818bd204c4a30a0281fb3c576298d9474c |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width