Skip to content

Commit 654c70a

Browse files
[3.11] gh-114070: fix token reference warnings in expressions.rst (GH-114169) (#114193)
Co-authored-by: Sergey B Kirpichev <[email protected]>
1 parent 8e0c921 commit 654c70a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

Doc/reference/expressions.rst

+3-2
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ be used to describe syntax, not lexical analysis. When (one alternative of) a
1414
syntax rule has the form
1515

1616
.. productionlist:: python-grammar
17-
name: `othername`
17+
name: othername
1818

1919
and no semantics are given, the semantics of this form of ``name`` are the same
2020
as for ``othername``.
@@ -422,7 +422,8 @@ Yield expressions
422422

423423
.. productionlist:: python-grammar
424424
yield_atom: "(" `yield_expression` ")"
425-
yield_expression: "yield" [`expression_list` | "from" `expression`]
425+
yield_from: "yield" "from" `expression`
426+
yield_expression: "yield" `expression_list` | `yield_from`
426427

427428
The yield expression is used when defining a :term:`generator` function
428429
or an :term:`asynchronous generator` function and

0 commit comments

Comments
 (0)