Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit fef4391

Browse files
committed
Improved ',' and '_' specification in format mini-language.
1 parent 89e1b1a commit fef4391

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

Doc/library/string.rst

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -300,11 +300,12 @@ non-empty format string typically modifies the result.
300300
The general form of a *standard format specifier* is:
301301

302302
.. productionlist:: sf
303-
format_spec: [[`fill`]`align`][`sign`][#][0][`width`][,][_][.`precision`][`type`]
303+
format_spec: [[`fill`]`align`][`sign`][#][0][`width`][`option`][.`precision`][`type`]
304304
fill: <any character>
305305
align: "<" | ">" | "=" | "^"
306306
sign: "+" | "-" | " "
307307
width: `integer`
308+
option: "_" | ","
308309
precision: `integer`
309310
type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
310311

0 commit comments

Comments
 (0)