]> git.ipfire.org Git - thirdparty/Python/cpython.git/commit
bpo-43216: Remove @asyncio.coroutine (GH-26369)
authorIllia Volochii <illia.volochii@gmail.com>
Thu, 1 Jul 2021 13:13:59 +0000 (16:13 +0300)
committerGitHub <noreply@github.com>
Thu, 1 Jul 2021 13:13:59 +0000 (15:13 +0200)
commita1092f62492a3fcd6195bea94eccf8d5a300acb1
treee6771f532ecc51ff4665e0f4dd6d715c31b0c04d
parent3623aaa78cb9c50edb6da5ac37000446f138b91c
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.
Doc/library/asyncio-task.rst
Doc/library/collections.abc.rst
Doc/reference/datamodel.rst
Doc/whatsnew/3.11.rst
Lib/asyncio/coroutines.py
Lib/test/test_asyncio/test_base_events.py
Lib/test/test_asyncio/test_events.py
Lib/test/test_asyncio/test_locks.py
Lib/test/test_asyncio/test_pep492.py
Lib/test/test_asyncio/test_tasks.py
Misc/NEWS.d/next/Library/2021-05-25-23-26-38.bpo-43216.xTUyyX.rst [new file with mode: 0644]