mirror of
https://github.com/python/cpython.git
synced 2025-09-26 18:29:57 +00:00
Update pydoc topics for 3.6.0rc2
This commit is contained in:
parent
f6105a55cf
commit
1e9aba51e2
1 changed files with 32 additions and 3 deletions
|
@ -1,5 +1,5 @@
|
||||||
# -*- coding: utf-8 -*-
|
# -*- coding: utf-8 -*-
|
||||||
# Autogenerated by Sphinx on Tue Dec 6 18:51:51 2016
|
# Autogenerated by Sphinx on Fri Dec 16 16:33:16 2016
|
||||||
topics = {'assert': '\n'
|
topics = {'assert': '\n'
|
||||||
'The "assert" statement\n'
|
'The "assert" statement\n'
|
||||||
'**********************\n'
|
'**********************\n'
|
||||||
|
@ -2613,7 +2613,8 @@ topics = {'assert': '\n'
|
||||||
'functions, even if they do not contain "await" or "async" '
|
'functions, even if they do not contain "await" or "async" '
|
||||||
'keywords.\n'
|
'keywords.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'It is a "SyntaxError" to use "yield" expressions in "async def"\n'
|
'It is a "SyntaxError" to use "yield from" expressions in "async '
|
||||||
|
'def"\n'
|
||||||
'coroutines.\n'
|
'coroutines.\n'
|
||||||
'\n'
|
'\n'
|
||||||
'An example of a coroutine function:\n'
|
'An example of a coroutine function:\n'
|
||||||
|
@ -7087,7 +7088,14 @@ topics = {'assert': '\n'
|
||||||
'generator is done and will cause "StopIteration" to be raised. '
|
'generator is done and will cause "StopIteration" to be raised. '
|
||||||
'The\n'
|
'The\n'
|
||||||
'returned value (if any) is used as an argument to construct\n'
|
'returned value (if any) is used as an argument to construct\n'
|
||||||
'"StopIteration" and becomes the "StopIteration.value" attribute.\n',
|
'"StopIteration" and becomes the "StopIteration.value" attribute.\n'
|
||||||
|
'\n'
|
||||||
|
'In an asynchronous generator function, an empty "return" '
|
||||||
|
'statement\n'
|
||||||
|
'indicates that the asynchronous generator is done and will cause\n'
|
||||||
|
'"StopAsyncIteration" to be raised. A non-empty "return" statement '
|
||||||
|
'is\n'
|
||||||
|
'a syntax error in an asynchronous generator function.\n',
|
||||||
'sequence-types': '\n'
|
'sequence-types': '\n'
|
||||||
'Emulating container types\n'
|
'Emulating container types\n'
|
||||||
'*************************\n'
|
'*************************\n'
|
||||||
|
@ -11097,6 +11105,27 @@ topics = {'assert': '\n'
|
||||||
'statements.\n'
|
'statements.\n'
|
||||||
' See also the Coroutine Objects section.\n'
|
' See also the Coroutine Objects section.\n'
|
||||||
'\n'
|
'\n'
|
||||||
|
' Asynchronous generator functions\n'
|
||||||
|
' A function or method which is defined using "async def" and\n'
|
||||||
|
' which uses the "yield" statement is called a *asynchronous\n'
|
||||||
|
' generator function*. Such a function, when called, returns '
|
||||||
|
'an\n'
|
||||||
|
' asynchronous iterator object which can be used in an "async '
|
||||||
|
'for"\n'
|
||||||
|
' statement to execute the body of the function.\n'
|
||||||
|
'\n'
|
||||||
|
' Calling the asynchronous iterator\'s "aiterator.__anext__()"\n'
|
||||||
|
' method will return an *awaitable* which when awaited will\n'
|
||||||
|
' execute until it provides a value using the "yield" '
|
||||||
|
'expression.\n'
|
||||||
|
' When the function executes an empty "return" statement or '
|
||||||
|
'falls\n'
|
||||||
|
' off the end, a "StopAsyncIteration" exception is raised and '
|
||||||
|
'the\n'
|
||||||
|
' asynchronous iterator will have reached the end of the set '
|
||||||
|
'of\n'
|
||||||
|
' values to be yielded.\n'
|
||||||
|
'\n'
|
||||||
' Built-in functions\n'
|
' Built-in functions\n'
|
||||||
' A built-in function object is a wrapper around a C function.\n'
|
' A built-in function object is a wrapper around a C function.\n'
|
||||||
' Examples of built-in functions are "len()" and "math.sin()"\n'
|
' Examples of built-in functions are "len()" and "math.sin()"\n'
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue