From: Miss Islington (bot) <31488909+miss-islington@users.noreply.github.com> Date: Fri, 4 Feb 2022 20:46:09 +0000 (-0800) Subject: [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132) X-Git-Tag: v3.9.11~93 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=459e26f0987a12a19238baba422e13a8f7fcfca3;p=thirdparty%2FPython%2Fcpython.git [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132) @coroutine in removed in 3.11, not 3.10. (cherry picked from commit 5603db43ba7ba5568b7516d0e28730a2bc1e1f26) Co-authored-by: Terry Jan Reedy --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index e8bee20bc76b..38b12e44b6de 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -991,7 +991,7 @@ Generator-based Coroutines .. note:: Support for generator-based coroutines is **deprecated** and - is scheduled for removal in Python 3.10. + is removed in Python 3.11. Generator-based coroutines predate async/await syntax. They are Python generators that use ``yield from`` expressions to await @@ -1019,7 +1019,7 @@ enforced. This decorator should not be used for :keyword:`async def` coroutines. - .. deprecated-removed:: 3.8 3.10 + .. deprecated-removed:: 3.8 3.11 Use :keyword:`async def` instead.