summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
authorEric V. Smith <eric@trueblade.com>2016-09-10 03:12:02 (GMT)
committerEric V. Smith <eric@trueblade.com>2016-09-10 03:12:02 (GMT)
commitfef4391c88f3b620155a300ff27caff947547582 (patch)
tree8fcbe141a86b693775020c561c0bdff2bc10113a /Doc
parent89e1b1aae0775341735de6bc5e97b3c1e9cea0fa (diff)
downloadcpython-fef4391c88f3b620155a300ff27caff947547582.zip
cpython-fef4391c88f3b620155a300ff27caff947547582.tar.gz
cpython-fef4391c88f3b620155a300ff27caff947547582.tar.bz2
Improved ',' and '_' specification in format mini-language.
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/string.rst3
1 files changed, 2 insertions, 1 deletions
diff --git a/Doc/library/string.rst b/Doc/library/string.rst
index b5d5ed1..667f932 100644
--- a/Doc/library/string.rst
+++ b/Doc/library/string.rst
@@ -300,11 +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`][,][_][.`precision`][`type`]
+ format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`option`][.`precision`][`type`]
fill: <any character>
align: "<" | ">" | "=" | "^"
sign: "+" | "-" | " "
width: `integer`
+ option: "_" | ","
precision: `integer`
type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"