mirror of https://github.com/python/cpython
Quote literal tokens in standard format specifier grammar (GH-102902)
Reported by Damian Dureck: https://mail.python.org/archives/list/docs@python.org/thread/UZTWBJIXC3MBKTHXVTIBPGDPKBNWZ5LN/
This commit is contained in:
parent
20c0f196ff
commit
f6405a4662
|
@ -310,7 +310,7 @@ non-empty format specification typically modifies the result.
|
|||
The general form of a *standard format specifier* is:
|
||||
|
||||
.. productionlist:: format-spec
|
||||
format_spec: [[`fill`]`align`][`sign`][z][#][0][`width`][`grouping_option`][.`precision`][`type`]
|
||||
format_spec: [[`fill`]`align`][`sign`]["z"]["#"]["0"][`width`][`grouping_option`]["." `precision`][`type`]
|
||||
fill: <any character>
|
||||
align: "<" | ">" | "=" | "^"
|
||||
sign: "+" | "-" | " "
|
||||
|
|
Loading…
Reference in New Issue