summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2016-09-10 03:13:01 (GMT)
committerEric V. Smith <eric@trueblade.com>2016-09-10 03:13:01 (GMT)
commitd7665ca7a4fc1abef9e0f448cda919bb99b821de (patch)
tree80a5b3d7e65b615279a83fa674d35515903bbbc1 /Doc
parentfef4391c88f3b620155a300ff27caff947547582 (diff)
downloadcpython-d7665ca7a4fc1abef9e0f448cda919bb99b821de.zip
cpython-d7665ca7a4fc1abef9e0f448cda919bb99b821de.tar.gz
cpython-d7665ca7a4fc1abef9e0f448cda919bb99b821de.tar.bz2
Further improved ',' and '_' specification in format mini-language.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/string.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index 667f932..6dbd3f9 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -300,12 +300,12 @@ non-empty format string typically modifies the result.
The general form of a *standard format specifier* is:
.. productionlist:: sf
- format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`option`][.`precision`][`type`]
+ format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`grouping_option`][.`precision`][`type`]
fill: <any character>
align: "<" | ">" | "=" | "^"
sign: "+" | "-" | " "
width: `integer`
- option: "_" | ","
+ grouping_option: "_" | ","
precision: `integer`
type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"