FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

[3.12] gh-114070: fix token reference warnings in expressions.rst (GH-114169) by miss-islington · Pull Request #114192 · python/cpython · GitHub

/ cpython Public
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension .rst  (1) All 1 file type selected
Viewed files
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Unified
Split
Hide whitespace
Diff view
Unified
Split
Hide whitespace
5 changes: 3 additions & 2 deletions Doc/reference/expressions.rst
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode characters
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

Back | FazBrowse Home | New Git URL