-
-
Notifications
You must be signed in to change notification settings - Fork 31.9k
Move description of grouping options in format specification docs #131912
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
Comments
That does make sense. Also, you maybe could group
No, just specify that
Or rather reorder separators descriptions in your pt. 1. Would you like to provide a pr? |
Sure, I will make one in a couple of days. |
…ification docs (#132030) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
…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)
I think we're done with this issue, right? |
Thanks, I think so. |
…t specification docs (python#132030) Co-authored-by: Bénédikt Tran <10796600+picnixz@users.noreply.github.com>
The form of format specifier is the following
Docs describe each option in the following order:
align
andfill
.sign
.z
.#
.,
._
.width
, then option0
.precision
.type
.As you can notice, options
,
and_
are not present in format spec, because they are actually part ofgrouping_option
. For whatever reason they are described beforewidth
, but most importantly, their descriptions never mention they are part ofgrouping_option
.It can be super confusing for the first readthrough, as descriptions are out of order and written similar to standalone options
z
and#
. I suggest the following changes:,
and_
after the description of width.grouping_option
.grouping_option
to"," | "_"
to match their description order and order of addition to Python.Example change:
Alternatively, these description can be placed in a table, similar for the list of string presentation types.
Linked PRs
The text was updated successfully, but these errors were encountered: