diff options
author | Sergey B Kirpichev <skirpichev@gmail.com> | 2024-01-17 16:39:50 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-01-17 16:39:50 (GMT) |
commit | 029ecee10dcb7c88382849f0220dba58a654e303 (patch) | |
tree | 5aa73da911d1534700a487b6771616ac444be9f1 /Doc/reference | |
parent | 7a0ac89b292324b629114a4c49b95fc5a78df7ca (diff) | |
download | cpython-029ecee10dcb7c88382849f0220dba58a654e303.zip cpython-029ecee10dcb7c88382849f0220dba58a654e303.tar.gz cpython-029ecee10dcb7c88382849f0220dba58a654e303.tar.bz2 |
gh-114070: fix token reference warnings in expressions.rst (#114169)
Diffstat (limited to 'Doc/reference')
-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 3f6d5bf..e543c12 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 |