From: Yury Selivanov Date: Tue, 25 Sep 2018 22:00:15 +0000 (-0400) Subject: [3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580) X-Git-Tag: v3.7.1rc1~2 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=22a56958e72957e2ee6fb84ac5376c4ba642f4ce;p=thirdparty%2FPython%2Fcpython.git [3.7] asyncio/docs: Replace Python 4.0 -> 3.10 (GH-9580) --- diff --git a/Doc/library/asyncio-task.rst b/Doc/library/asyncio-task.rst index 7fbfd426dba6..5cbdfeff32f5 100644 --- a/Doc/library/asyncio-task.rst +++ b/Doc/library/asyncio-task.rst @@ -271,7 +271,7 @@ Sleeping when the coroutine completes. The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. .. _asyncio_example_sleep: @@ -429,7 +429,7 @@ Timeouts If the wait is cancelled, the future *aw* is also cancelled. The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. .. _asyncio_example_waitfor: @@ -481,7 +481,7 @@ Waiting Primitives done, pending = await asyncio.wait(aws) The *loop* argument is deprecated and scheduled for removal - in Python 4.0. + in Python 3.10. *timeout* (a float or int), if specified, can be used to control the maximum number of seconds to wait before returning. @@ -857,7 +857,7 @@ Generator-based Coroutines .. note:: Support for generator-based coroutines is **deprecated** and - is scheduled for removal in Python 4.0. + is scheduled for removal in Python 3.10. Generator-based coroutines predate async/await syntax. They are Python generators that use ``yield from`` expressions to await @@ -883,7 +883,7 @@ enforced. await old_style_coroutine() This decorator is **deprecated** and is scheduled for removal in - Python 4.0. + Python 3.10. This decorator should not be used for :keyword:`async def` coroutines.