From: Terry Jan Reedy Date: Mon, 18 Mar 2024 09:31:13 +0000 (-0400) Subject: gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) X-Git-Tag: v3.13.0a6~269 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=4e45c6c54a9457b1ca5b4cf3aa2843b7218d4414;p=thirdparty%2FPython%2Fcpython.git 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 . Remove it there. --- diff --git a/Doc/reference/lexical_analysis.rst b/Doc/reference/lexical_analysis.rst index 40bd477bcaf7..f0b3d0a7458c 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: The parts of the string outside curly braces are treated literally,