Message260251
After thinking about this some more, I think my problem with asyncio.wait() is a bit bigger than the simple fact that coroutine objects cannot be awaited multiple times. It seems to me like asyncio.wait() is completely broken for coroutine objects as inputs and that multiple awaits on coroutine objects only make that problem worse.
While I still think there is a major benefit API-wise to have await expressions produce the same behaviour for both Futures and coroutine objects, I'm moving that discussion to issue #26357.
http://bugs.python.org/issue26357 |
|
Date |
User |
Action |
Args |
2016-02-13 21:21:51 | André Caron | set | recipients:
+ André Caron, gvanrossum, brett.cannon, ncoghlan, vstinner, asvetlov, martin.panter, yselivanov |
2016-02-13 21:21:51 | André Caron | set | messageid: <1455398511.73.0.0805537908264.issue25887@psf.upfronthosting.co.za> |
2016-02-13 21:21:51 | André Caron | link | issue25887 messages |
2016-02-13 21:21:51 | André Caron | create | |
|