New submission from Yury Selivanov <yseliva...@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 <rep...@bugs.python.org>
<https://bugs.python.org/issue34790>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to