Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
bfe1839a
Commit
bfe1839a
authored
Nov 07, 2018
by
Andrés Delfino
Committed by
Serhiy Storchaka
Nov 07, 2018
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add link to PEP 525 in Expressions. (GH-10333)
parent
ae31e3fb
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
1 deletion
+5
-1
Doc/reference/expressions.rst
Doc/reference/expressions.rst
+5
-1
No files found.
Doc/reference/expressions.rst
View file @
bfe1839a
...
...
@@ -418,7 +418,7 @@ coroutine function to be an asynchronous generator. For example::
def gen(): # defines a generator function
yield 123
async def agen(): # defines an asynchronous generator function
(PEP 525)
async def agen(): # defines an asynchronous generator function
yield 123
Due to their side effects on the containing scope, ``yield`` expressions
...
...
@@ -501,6 +501,10 @@ on the right hand side of an assignment statement.
The proposal to introduce the :token:`yield_from` syntax, making delegation
to sub-generators easy.
:pep:`525` - Asynchronous Generators
The proposal that expanded on :pep:`492` by adding generator capabilities to
coroutine functions.
.. index:: object: generator
.. _generator-methods:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment