]> granicus.if.org Git - python/commitdiff
Further improved ',' and '_' specification in format mini-language.
authorEric V. Smith <eric@trueblade.com>
Sat, 10 Sep 2016 03:13:01 +0000 (23:13 -0400)
committerEric V. Smith <eric@trueblade.com>
Sat, 10 Sep 2016 03:13:01 +0000 (23:13 -0400)
Doc/library/string.rst

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