mirror of
https://github.com/python/cpython.git
synced 2025-10-01 12:52:18 +00:00
[3.7] bpo-32996: The bulk of What's New in Python 3.7 (GH-6978). (GH-6998)
(cherry picked from commit 63536bd286
)
Co-authored-by: Elvis Pranskevichus <elvis@magic.io>
This commit is contained in:
parent
222ae1eccc
commit
15f3d0cc76
4 changed files with 1532 additions and 581 deletions
|
@ -92,7 +92,7 @@ Coroutines (and tasks) can only run when the event loop is running.
|
|||
used in a callback-style code, wrap its result with :func:`ensure_future`.
|
||||
|
||||
|
||||
.. function:: asyncio.run(coro, \*, debug=False)
|
||||
.. function:: run(coro, \*, debug=False)
|
||||
|
||||
This function runs the passed coroutine, taking care of
|
||||
managing the asyncio event loop and finalizing asynchronous
|
||||
|
|
|
@ -78,9 +78,6 @@ options:
|
|||
|
||||
Providing both of the script selection options will trigger an exception.
|
||||
|
||||
.. versionchanged:: 3.7.0
|
||||
The exit status is non-zero if the command fails.
|
||||
|
||||
|
||||
Module API
|
||||
----------
|
||||
|
|
|
@ -683,6 +683,8 @@ can be used to create instance variables with different implementation details.
|
|||
:pep:`3129` - Class Decorators
|
||||
|
||||
|
||||
.. _async:
|
||||
|
||||
Coroutines
|
||||
==========
|
||||
|
||||
|
|
2106
Doc/whatsnew/3.7.rst
2106
Doc/whatsnew/3.7.rst
File diff suppressed because it is too large
Load diff
Loading…
Add table
Add a link
Reference in a new issue