mirror of
https://github.com/python/cpython.git
synced 2025-11-10 06:24:12 +00:00
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.
This commit is contained in:
parent
3a99f5c5f3
commit
4e45c6c54a
1 changed files with 1 additions and 1 deletions
|
|
@ -733,7 +733,7 @@ for the contents of the string is:
|
||||||
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
|
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
|
||||||
: | `yield_expression`
|
: | `yield_expression`
|
||||||
conversion: "s" | "r" | "a"
|
conversion: "s" | "r" | "a"
|
||||||
format_spec: (`literal_char` | NULL | `replacement_field`)*
|
format_spec: (`literal_char` | `replacement_field`)*
|
||||||
literal_char: <any code point except "{", "}" or NULL>
|
literal_char: <any code point except "{", "}" or NULL>
|
||||||
|
|
||||||
The parts of the string outside curly braces are treated literally,
|
The parts of the string outside curly braces are treated literally,
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue