From: Eric V. Smith Date: Sat, 10 Sep 2016 03:13:01 +0000 (-0400) Subject: Further improved ',' and '_' specification in format mini-language. X-Git-Tag: v3.6.0b1~121 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=d7665ca7a4fc1abef9e0f448cda919bb99b821de;p=python Further improved ',' and '_' specification in format mini-language. --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index 667f93208a..6dbd3f90ba 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: align: "<" | ">" | "=" | "^" sign: "+" | "-" | " " width: `integer` - option: "_" | "," + grouping_option: "_" | "," precision: `integer` type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"