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 <skirpichev@gmail.com>
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

Lines changed: 3 additions & 2 deletions
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)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy