File tree 1 file changed +4
-2
lines changed 1 file changed +4
-2
lines changed Original file line number Diff line number Diff line change @@ -319,14 +319,16 @@ non-empty format specification typically modifies the result.
319
319
The general form of a *standard format specifier * is:
320
320
321
321
.. productionlist :: format-spec
322
- format_spec: [[`fill `]`align`][`sign `]["z"]["#"]["0"][`width `][`grouping `]["." `precision `][`type `]
322
+ format_spec: [`options `][`width `][`grouping `]["." `precision `][`type `]
323
+ options: [[`fill `]`align`][`sign `]["z"]["#"]["0"]
323
324
fill: <any character>
324
325
align: "<" | ">" | "=" | "^"
325
326
sign: "+" | "-" | " "
326
327
width: `~python-grammar:digit`+
327
328
grouping: "," | "_"
328
329
precision: `~python-grammar:digit`+
329
- type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g" | "G" | "n" | "o" | "s" | "x" | "X" | "%"
330
+ type: "b" | "c" | "d" | "e" | "E" | "f" | "F" | "g"
331
+ : | "G" | "n" | "o" | "s" | "x" | "X" | "%"
330
332
331
333
If a valid *align * value is specified, it can be preceded by a *fill *
332
334
character that can be any character and defaults to a space if omitted.
You can’t perform that action at this time.
0 commit comments