From: Eric V. Smith Date: Sat, 10 Sep 2016 03:12:02 +0000 (-0400) Subject: Improved ',' and '_' specification in format mini-language. X-Git-Tag: v3.6.0b1~122 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=fef4391c88f3b620155a300ff27caff947547582;p=thirdparty%2FPython%2Fcpython.git Improved ',' and '_' specification in format mini-language. --- diff --git a/Doc/library/string.rst b/Doc/library/string.rst index b5d5ed190191..667f93208a88 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: align: "<" | ">" | "=" | "^" sign: "+" | "-" | " " width: `integer` + option: "_" | "," precision: `integer` type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"