Skip to content

Commit fa67bbb

Browse files
terryjreedymiss-islington
authored andcommitted
pythongh-116881: Remove erroneous or redundant grammar NULL (pythonGH-116885)
In Lexical Analysis f-strings section, NULL in the description of 'literal character' means '\0'. In the format_spec grammar production, it is wrong with that meaning and redundant if instead interpreted as <nothing>. Remove it there. (cherry picked from commit 4e45c6c) Co-authored-by: Terry Jan Reedy <[email protected]>
1 parent a93974d commit fa67bbb

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

Doc/reference/lexical_analysis.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -720,7 +720,7 @@ for the contents of the string is:
720720
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
721721
: | `yield_expression`
722722
conversion: "s" | "r" | "a"
723-
format_spec: (`literal_char` | NULL | `replacement_field`)*
723+
format_spec: (`literal_char` | `replacement_field`)*
724724
literal_char: <any code point except "{", "}" or NULL>
725725

726726
The parts of the string outside curly braces are treated literally,

0 commit comments

Comments
 (0)