mirror of
https://github.com/python/cpython.git
synced 2025-09-09 02:11:51 +00:00
bpo-43216: Remove @asyncio.coroutine (GH-26369)
Remove the @asyncio.coroutine decorator enabling legacy generator-based coroutines to be compatible with async/await code; remove asyncio.coroutines.CoroWrapper used for wrapping legacy coroutine objects in the debug mode. The decorator has been deprecated since Python 3.8 and the removal was initially scheduled for Python 3.10.
This commit is contained in:
parent
3623aaa78c
commit
a1092f6249
11 changed files with 85 additions and 763 deletions
|
@ -2714,7 +2714,7 @@ are awaitable.
|
|||
.. note::
|
||||
|
||||
The :term:`generator iterator` objects returned from generators
|
||||
decorated with :func:`types.coroutine` or :func:`asyncio.coroutine`
|
||||
decorated with :func:`types.coroutine`
|
||||
are also awaitable, but they do not implement :meth:`__await__`.
|
||||
|
||||
.. method:: object.__await__(self)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue