mirror of
https://github.com/python/cpython.git
synced 2026-02-14 03:10:44 +00:00
[3.11] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) (#116952)
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 4e45c6c54a)
Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
This commit is contained in:
parent
a93974d452
commit
56cd8740a0
1 changed files with 1 additions and 1 deletions
|
|
@ -720,7 +720,7 @@ for the contents of the string is:
|
|||
: ("," `conditional_expression` | "," "*" `or_expr`)* [","]
|
||||
: | `yield_expression`
|
||||
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>
|
||||
|
||||
The parts of the string outside curly braces are treated literally,
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue