8000 [3.11] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) by miss-islington · Pull Request #116952 · python/cpython · GitHub
[go: up one dir, main page]

Skip to content

[3.11] gh-116881: Remove erroneous or redundant grammar NULL (GH-116885) #116952

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 18, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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.
(cherry picked from commit 4e45c6c)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
  • Loading branch information
terryjreedy authored and miss-islington committed Mar 18, 2024
commit fa67bbbb4cd1a1103670a74f675ac6abcb4784bd
2 changes: 1 addition & 1 deletion Doc/reference/lexical_analysis.rst
< 5F83 table class=" diff-table js-diff-table tab-size " data-tab-size="3" data-diff-anchor="diff-1b819e2e09fc616c594f0099afaefe6191e0055e875ab1d4831679e78c1bb02d" data-paste-markdown-skip> Original file line number Diff line number Diff line change Expand Up @@ -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, Expand Down
0