8000 Quote literal tokens in standard format specifier grammar (GH-102902) · python/cpython@f6405a4 · GitHub
[go: up one dir, main page]

Skip to content

Commit f6405a4

Browse files
authored
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/
1 parent 20c0f19 commit f6405a4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/library/string.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -310,7 +310,7 @@ non-empty format specification typically modifies the result.
310310
The general form of a *standard format specifier* is:
311311

312312
.. productionlist:: format-spec
313-
format_spec: [[`fill`]`align`][`sign`][z][#][0][`width`][`grouping_option`][.`precision`][`type`]
313+
format_spec: [[`fill`]`align`][`sign`]["z"]["#"]["0"][`width`][`grouping_option`]["." `precision`][`type`]
314314
fill: <any character>
315315
align: "<" | ">" | "=" | "^"
316316
sign: "+" | "-" | " "

0 commit comments

Comments
 (0)
0