]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132) 31140/head
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Fri, 4 Feb 2022 20:46:09 +0000 (12:46 -0800)
committerGitHub <noreply@github.com>
Fri, 4 Feb 2022 20:46:09 +0000 (15:46 -0500)
@coroutine in removed in 3.11, not 3.10.
(cherry picked from commit 5603db43ba7ba5568b7516d0e28730a2bc1e1f26)

Co-authored-by: Terry Jan Reedy <tjreedy@udel.edu>
Doc/library/asyncio-task.rst

index e8bee20bc76bc77eb113a0f80f34c695d6f741f6..38b12e44b6de2830ebb00825eebcc9e5f6e18802 100644 (file)
@@ -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.