Uh oh!
There was an error while loading. Please reload this page.
bpo-45708: Support underscore separators when formatting Decimal objects - #29438
bpo-45708: Support underscore separators when formatting Decimal objects#29438mdickinson wants to merge 2 commits into
Conversation
tiran
commented
Nov 6, 2021
This will break tests for vendors that de-bundle mpdecimal and use the upstream version. Fedora/CentOS/RHEL are not affected but Debian/Ubuntu use standaline libmpdecimal. |
mdickinson
commented
Nov 7, 2021
Darn. Thanks, @tiran - my instincts were telling me that we shouldn't modify libmpdec directly, but I failed to figure out why it was a problem. Closing here; let's continue discussion on the issue. |
Re-opening as a proof-of-concept draft PR to show one possible way that we could take this forward without touching libmpdec. |
This PR is stale because it has been open for 30 days with no activity. |
mdickinson
commented
Apr 12, 2022
Closing. This has served its purpose as a POC. I'm not likely to have time to turn it into a production-quality PR any time soon. |
This PR extends formatting for
Decimalobjects to support underscores as thousands separators (as described in PEP 515). Previously,Decimalonly supported commas as thousands separators, while int and float support both commas and underscores.https://bugs.python.org/issue45708