summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTerry Jan Reedy <tjreedy@udel.edu>2024-03-18 09:31:13 (GMT)
committerGitHub <noreply@github.com>2024-03-18 09:31:13 (GMT)
commit4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414 (patch)
tree87e1a9ac125d6f235045e238134cb77d5a32b5d7
parent3a99f5c5f34dc7b67597ca7230da355d92927c71 (diff)
downloadcpython-4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414.zip
cpython-4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414.tar.gz
cpython-4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414.tar.bz2
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.
-rw-r--r--Doc/reference/lexical_analysis.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst
index 40bd477..f0b3d0a 100644
--- a/Doc/reference/lexical_analysis.rst
+++ b/Doc/reference/lexical_analysis.rst
@@ -733,7 +733,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,