Documentation
Since 3.12 asyncio.wait_for() no longer wraps a coroutine in a Task for positive timeouts, but the docs still say it does
Where the docs are misleading:
Doc/library/asyncio-task.rst:846 — "If fut is a coroutine it is automatically scheduled as a Task."
Lib/asyncio/tasks.py:443 — "Coroutine will be wrapped in Task."
:846-855 also refer to "the task" that does not exist, and there is no versionchanged:: 3.12.
Linked PRs
Documentation
Since 3.12
asyncio.wait_for()no longer wraps a coroutine in a Task for positive timeouts, but the docs still say it doesWhere the docs are misleading:
Doc/library/asyncio-task.rst:846— "If fut is a coroutine it is automatically scheduled as a Task."Lib/asyncio/tasks.py:443— "Coroutine will be wrapped in Task.":846-855also refer to "the task" that does not exist, and there is noversionchanged:: 3.12.Linked PRs