Skip to content

Commit 1e9aba5

Browse files
committed
Update pydoc topics for 3.6.0rc2
1 parent f6105a5 commit 1e9aba5

File tree

1 file changed

+32
-3
lines changed

1 file changed

+32
-3
lines changed

Lib/pydoc_data/topics.py

Lines changed: 32 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
# -*- coding: utf-8 -*-
2-
# Autogenerated by Sphinx on Tue Dec 6 18:51:51 2016
2+
# Autogenerated by Sphinx on Fri Dec 16 16:33:16 2016
33
topics = {'assert': '\n'
44
'The "assert" statement\n'
55
'**********************\n'
@@ -2613,7 +2613,8 @@
26132613
'functions, even if they do not contain "await" or "async" '
26142614
'keywords.\n'
26152615
'\n'
2616-
'It is a "SyntaxError" to use "yield" expressions in "async def"\n'
2616+
'It is a "SyntaxError" to use "yield from" expressions in "async '
2617+
'def"\n'
26172618
'coroutines.\n'
26182619
'\n'
26192620
'An example of a coroutine function:\n'
@@ -7087,7 +7088,14 @@
70877088
'generator is done and will cause "StopIteration" to be raised. '
70887089
'The\n'
70897090
'returned value (if any) is used as an argument to construct\n'
7090-
'"StopIteration" and becomes the "StopIteration.value" attribute.\n',
7091+
'"StopIteration" and becomes the "StopIteration.value" attribute.\n'
7092+
'\n'
7093+
'In an asynchronous generator function, an empty "return" '
7094+
'statement\n'
7095+
'indicates that the asynchronous generator is done and will cause\n'
7096+
'"StopAsyncIteration" to be raised. A non-empty "return" statement '
7097+
'is\n'
7098+
'a syntax error in an asynchronous generator function.\n',
70917099
'sequence-types': '\n'
70927100
'Emulating container types\n'
70937101
'*************************\n'
@@ -11097,6 +11105,27 @@
1109711105
'statements.\n'
1109811106
' See also the Coroutine Objects section.\n'
1109911107
'\n'
11108+
' Asynchronous generator functions\n'
11109+
' A function or method which is defined using "async def" and\n'
11110+
' which uses the "yield" statement is called a *asynchronous\n'
11111+
' generator function*. Such a function, when called, returns '
11112+
'an\n'
11113+
' asynchronous iterator object which can be used in an "async '
11114+
'for"\n'
11115+
' statement to execute the body of the function.\n'
11116+
'\n'
11117+
' Calling the asynchronous iterator\'s "aiterator.__anext__()"\n'
11118+
' method will return an *awaitable* which when awaited will\n'
11119+
' execute until it provides a value using the "yield" '
11120+
'expression.\n'
11121+
' When the function executes an empty "return" statement or '
11122+
'falls\n'
11123+
' off the end, a "StopAsyncIteration" exception is raised and '
11124+
'the\n'
11125+
' asynchronous iterator will have reached the end of the set '
11126+
'of\n'
11127+
' values to be yielded.\n'
11128+
'\n'
1110011129
' Built-in functions\n'
1110111130
' A built-in function object is a wrapper around a C function.\n'
1110211131
' Examples of built-in functions are "len()" and "math.sin()"\n'

0 commit comments

Comments
 (0)