GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | |||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | |||||||||||||||
GeezerVison is showing github.com — gh-130664: support '_' (just as ',') in Decimal's formatting by skirpichev · Pull Request #132155 · python/cpython Conversation
|
| (',%', '123.456789', '12,345.6789%'), | ||
| (',e', '123456', '1.23456e+5'), | ||
| (',E', '123456', '1.23456E+5'), | ||
| # ... with '_' instead |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Can we not just use the existing tests with a for loop?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
What you meant? There is no existing test with '_' separator.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Does this not need a documentation update somewhere too?
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
…F2r-U.rst Co-authored-by: Stan Ulbrych <[email protected]>
We don't have documentation for Decimal's formatting, beyond some notes in the Format Specification Mini-Language. There are no even examples of formatted output (few added in #128698). |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Thanks @skirpichev for the PR, and @ambv for merging it 🌮🎉.. I'm working now to backport this PR to: 3.13. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
…ythonGH-132155) (cherry picked from commit e10fe81) Co-authored-by: Sergey B Kirpichev <[email protected]>
|
GH-136649 is a backport of this pull request to the 3.13 branch. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.