[New-bugs-announce] [issue34790] Deprecate passing coroutine objects to asyncio.wait()

Yury Selivanov report at bugs.python.org
Mon Sep 24 12:42:33 EDT 2018


New submission from Yury Selivanov <yselivanov at gmail.com>:

asyncio.wait() accepts coroutines, wraps them into Tasks, and later returns those implicitly created Tasks in (done, pending) sets.  This is very confusing to new asyncio users and it's almost impossible to figure out what is going on.  See the first PR to the docs for more info.

Andrew, I think we should deprecate passing coroutines to asyncio.wait() in 3.8, and disallow that in 4.0.

----------
components: asyncio
messages: 326265
nosy: asvetlov, yselivanov
priority: normal
severity: normal
status: open
title: Deprecate passing coroutine objects to asyncio.wait()
type: behavior

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34790>
_______________________________________


More information about the New-bugs-announce mailing list