Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b121f63 commit 2ddbd21Copy full SHA for 2ddbd21
1 file changed
Doc/whatsnew/3.8.rst
@@ -237,6 +237,16 @@ asyncio
237
238
On Windows, the default event loop is now :class:`~asyncio.ProactorEventLoop`.
239
240
+builtins
241
+--------
242
+
243
+The :func:`compile` built-in has been improved to accept the
244
+``ast.PyCF_ALLOW_TOP_LEVEL_AWAIT`` flag. With this new flag passed,
245
+:func:`compile` will allow top-level ``await``, ``async for`` and ``async with``
246
+constructs that are usually considered invalid syntax. Asynchronous code object
247
+marked with the ``CO_COROUTINE`` flag may then be returned.
248
249
+(Contributed by Matthias Bussonnier in :issue:`34616`)
250
251
collections
252
-----------
0 commit comments