mirror of
https://github.com/python/cpython.git
synced 2025-09-29 03:35:31 +00:00
bpo-34616: Document top level async in whatsnew/3.8. (GH-13484)
https://bugs.python.org/issue34616
This commit is contained in:
parent
b121f63155
commit
2ddbd21aec
1 changed files with 10 additions and 0 deletions
|
@ -237,6 +237,16 @@ asyncio
|
||||||
|
|
||||||
On Windows, the default event loop is now :class:`~asyncio.ProactorEventLoop`.
|
On Windows, the default event loop is now :class:`~asyncio.ProactorEventLoop`.
|
||||||
|
|
||||||
|
builtins
|
||||||
|
--------
|
||||||
|
|
||||||
|
The :func:`compile` built-in has been improved to accept the
|
||||||
|
``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` flag. With this new flag passed,
|
||||||
|
:func:`compile` will allow top-level ``await``, ``async for`` and ``async with``
|
||||||
|
constructs that are usually considered invalid syntax. Asynchronous code object
|
||||||
|
marked with the ``CO_COROUTINE`` flag may then be returned.
|
||||||
|
|
||||||
|
(Contributed by Matthias Bussonnier in :issue:`34616`)
|
||||||
|
|
||||||
collections
|
collections
|
||||||
-----------
|
-----------
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue