]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Improved ',' and '_' specification in format mini-language.
authorEric V. Smith <eric@trueblade.com>
Sat, 10 Sep 2016 03:12:02 +0000 (23:12 -0400)
committerEric V. Smith <eric@trueblade.com>
Sat, 10 Sep 2016 03:12:02 +0000 (23:12 -0400)
Doc/library/string.rst

index b5d5ed1901910713459bef2ad813258d7a5a8174..667f93208a887ff065c213df7e4465142d34cf4e 100644 (file)
@@ -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" | "%"