Message260304
We fixed our bug days ago, but I would have expected [*gen] to have triggered an exception before it even got to gather().
The real code was something like:
>>> l = (ensure_awaitable(callable_obj) for callable_obj in callable_list)
>>> gather(*l)
ensure_awaitable() is just using inspect to turn coroutine functions into coroutines, and wraps non coroutine callables with asyncio.coroutine(callable)().
In the end, ensure_awaitable did raise TypeError if the argument passed was not a callable. |
|
Date |
User |
Action |
Args |
2016-02-15 09:42:11 | Michel Desmoulin | set | recipients:
+ Michel Desmoulin, georg.brandl, terry.reedy, amaury.forgeotdarc, ncoghlan, pitrou, ron_adam, dangyogi, benjamin.peterson, gpolo, hagen, kcarnold, r.david.murray, daniel.urban, python-dev, pfctdayelise, martin.panter, brandjon, yselivanov, DragonFireCK, Samuel BOVÉE |
2016-02-15 09:42:11 | Michel Desmoulin | set | messageid: <1455529331.49.0.872218596701.issue4806@psf.upfronthosting.co.za> |
2016-02-15 09:42:11 | Michel Desmoulin | link | issue4806 messages |
2016-02-15 09:42:11 | Michel Desmoulin | create | |
|