Message260304
| Author |
Michel Desmoulin |
| Recipients |
DragonFireCK, Michel Desmoulin, Samuel BOVÉE, amaury.forgeotdarc, benjamin.peterson, brandjon, dangyogi, daniel.urban, georg.brandl, gpolo, hagen, kcarnold, martin.panter, ncoghlan, pfctdayelise, pitrou, python-dev, r.david.murray, ron_adam, terry.reedy, yselivanov |
| Date |
2016年02月15日.09:42:11 |
| SpamBayes Score |
-1.0 |
| Marked as misclassified |
Yes |
| Message-id |
<1455529331.49.0.872218596701.issue4806@psf.upfronthosting.co.za> |
| In-reply-to |
| Content |
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. |
|
History
|
|---|
| 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 |
|