-
-
Notifications
You must be signed in to change notification settings - Fork 31.8k
gh-131912: Refactored description of grouping options in format specification docs #132030
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't like the use of "thousands separator", as I believe for fractional part "thousandths" is more correct and it made sense only for decimal representation. Instead, I replaced "thousands separator" with "digit separator".
That was, probably, an artifact of PEP 378. I agree, "thousands separator" looks rather odd for base-2 integer representation types.
CC @picnixz
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Some final wording comments
Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
I'll merge this tomorrow! (I don't merge stuff after a certain hour) |
For 3.13 and below it would be better to prepare separate PR as grouping for fractional part is added in 3.14. I can make one after this is merged. |
If you can do your own PR for 3.13 and below, please do so! Just @ me afterwards |
Yes, I think it worth backporting to 3.12 and 3.13. It should be mostly trivial (minus extra paragraph), modulo changes in the grammar. |
Thank you for the fix! you can now do the backports for 3.13 only (I'll make an automatic backport for 3.12 as I don't think it didn't change between 3.12 and 3.13) |
GH-132123 is a backport of this pull request to the 3.13 branch. |
GH-132123 is a backport of this pull request to the 3.13 branch. |
…e format specification docs (pythonGH-132030) (pythonGH-132123) (cherry picked from commit 07483c2) Co-authored-by: Prometheus3375 <35541026+Prometheus3375@users.noreply.github.com> (cherry picked from commit 06a110f)
GH-132203 is a backport of this pull request to the 3.12 branch. |
…t specification docs (python#132030) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
This PR refactors descriptions for grouping options. It places it after width and precision where grouping can be used. It also fixes two typos: (a) grouping wasn't optional for precision and (b) sentences for sign options were not capitalized.
📚 Documentation preview 📚