[Python-checkins] [3.9] bpo-46609: Update asyncio-task coroutine doc (GH-31132)

terryjreedy webhook-mailer at python.org
Fri Feb 4 15:46:17 EST 2022


https://github.com/python/cpython/commit/459e26f0987a12a19238baba422e13a8f7fcfca3
commit: 459e26f0987a12a19238baba422e13a8f7fcfca3
branch: 3.9
author: Miss Islington (bot) <31488909+miss-islington at users.noreply.github.com>
committer: terryjreedy <tjreedy at udel.edu>
date: 2022-02-04T15:46:09-05:00
summary:

[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 <tjreedy at udel.edu>

files:
M Doc/library/asyncio-task.rst

diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst
index e8bee20bc76bc..38b12e44b6de2 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.
 



More information about the Python-checkins mailing list