diff options
author | Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> | 2024-01-17 16:53:08 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 16:53:08 (GMT) |
commit | 654c70a655f592cb61c6816b76c5b1dd452d51aa (patch) | |
tree | fc55a667ffb08a02cc2850cbb9f289de0b622235 | |
parent | 8e0c9213ac8d8ee8cb17c889aaabeafc40cb29f3 (diff) | |
download | cpython-654c70a655f592cb61c6816b76c5b1dd452d51aa.zip cpython-654c70a655f592cb61c6816b76c5b1dd452d51aa.tar.gz cpython-654c70a655f592cb61c6816b76c5b1dd452d51aa.tar.bz2 |
[3.11] gh-114070: fix token reference warnings in expressions.rst (GH-114169) (#114193)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
-rw-r--r-- | Doc/reference/expressions.rst | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst index 7130aa2..05055b6 100644 --- a/Doc/reference/expressions.rst +++ b/Doc/reference/expressions.rst @@ -14,7 +14,7 @@ be used to describe syntax, not lexical analysis. When (one alternative of) a syntax rule has the form .. productionlist:: python-grammar - name: `othername` + name: othername and no semantics are given, the semantics of this form of ``name`` are the same as for ``othername``. @@ -422,7 +422,8 @@ Yield expressions .. productionlist:: python-grammar yield_atom: "(" `yield_expression` ")" - yield_expression: "yield" [`expression_list` | "from" `expression`] + yield_from: "yield" "from" `expression` + yield_expression: "yield" `expression_list` | `yield_from` The yield expression is used when defining a :term:`generator` function or an :term:`asynchronous generator` function and |