Skip to content

Commit 4e45c6c

Browse files
authored
gh-116881: Remove erroneous or redundant grammar NULL (GH-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.
1 parent 3a99f5c commit 4e45c6c

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
@@ -733,7 +733,7 @@ for the contents of the string is:
733733
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
734734
: | `yield_expression`
735735
conversion: "s" | "r" | "a"
736-
format_spec: (`literal_char` | NULL | `replacement_field`)*
736+
format_spec: (`literal_char` | `replacement_field`)*
737737
literal_char: <any code point except "{", "}" or NULL>
738738

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

0 commit comments

Comments
 (0)