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.08:34:34
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
It gets even weirder with coroutines involved:

>>> f = (coro() for coro in l) 
>>> asyncio.gather(*f) # TypeError: asyncio.gather() argument after * must be a sequence, not generator
>>> asyncio.gather(*[*f]) # ok

Because coroutines are executed later, the last gather() doesn't show the error message. So it tricked you into thinking that the second version is ok while the first one is not.

But of course, both are ok, the problem lies in a bug deeper in your coroutine triggering the TypeError.
Date User Action Args
2016-02-15 08:34:35Michel 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 08:34:35Michel Desmoulinsetmessageid: <>
2016-02-15 08:34:35Michel Desmoulinlinkissue4806 messages
2016-02-15 08:34:34Michel Desmoulincreate