Skip to content

Commit

Permalink
[3.12] pythongh-114070: fix token reference warnings in expressions.r…
Browse files Browse the repository at this point in the history
…st (pythonGH-114169) (python#114192)

Co-authored-by: Sergey B Kirpichev <skirpichev@gmail.com>
  • Loading branch information
miss-islington and skirpichev committed Jan 17, 2024
1 parent 00e7793 commit 74a6b7f
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions Doc/reference/expressions.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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``.
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 74a6b7f

Please sign in to comment.