summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>2024-01-17 16:46:02 (GMT)
committerGitHub <noreply@github.com>2024-01-17 16:46:02 (GMT)
commit74a6b7f6393a2417df8422b4663642e3588687fd (patch)
treec56424bc7794fbf5439ec704e4e80766859bc8d1
parent00e77935193221f1601405587b9ec05c14c13284 (diff)
downloadcpython-74a6b7f6393a2417df8422b4663642e3588687fd.zip
cpython-74a6b7f6393a2417df8422b4663642e3588687fd.tar.gz
cpython-74a6b7f6393a2417df8422b4663642e3588687fd.tar.bz2
[3.12] gh-114070: fix token reference warnings in expressions.rst (GH-114169) (#114192)
Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
-rw-r--r--Doc/reference/expressions.rst5
1 files changed, 3 insertions, 2 deletions
diff --git a/Doc/reference/expressions.rst b/Doc/reference/expressions.rst
index e78dff9..c30a97f 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