This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

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:11Michel Desmoulinsetrecipients: + 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:11Michel Desmoulinsetmessageid: <1455529331.49.0.872218596701.issue4806@psf.upfronthosting.co.za>
2016-02-15 09:42:11Michel Desmoulinlinkissue4806 messages
2016-02-15 09:42:11Michel Desmoulincreate