]> granicus.if.org Git - python/commit
bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)
authorAndrew Svetlov <andrew.svetlov@gmail.com>
Thu, 16 May 2019 14:52:10 +0000 (17:52 +0300)
committerMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Thu, 16 May 2019 14:52:10 +0000 (07:52 -0700)
commit68b34a720485f399e8699235b8f4e08f227dd43b
tree49bbe28097e67a4ffbf9c39d9b5b143c5cbe607d
parentdbacfc227381fbc7b3c886ea0bd7806ab3dc62c2
bpo-36921: Deprecate @coroutine for sake of async def (GH-13346)

The second attempt. Now deprecate `@coroutine` only, keep `yield from fut` as is.

https://bugs.python.org/issue36921
12 files changed:
Doc/library/asyncio-task.rst
Lib/asyncio/coroutines.py
Lib/asyncio/locks.py
Lib/asyncio/tasks.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_streams.py
Lib/test/test_asyncio/test_tasks.py
Lib/test/test_typing.py
Misc/NEWS.d/next/Library/2019-05-15-21-35-23.bpo-36921.kA1306.rst [new file with mode: 0644]