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 ezio.melotti
Recipients ezio.melotti, gcewing, hakril, ncoghlan
Date 2014-07-12.20:08:22
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
There seem to be two issues here:

> list comprehension with yield(-from) would return a generator.

This is somewhat surprising, and I'm not sure it's expected/documented.
The example you provided seems to behave reasonably, so I don't think we should change the behavior (unless there is some actual bug in similar example).  If anything, we could document this, but I'm not sure if it's worth doing it and where could be added.

> generator comprehension would yield some None in the middle
> of the expected values.

This also seems expected, and the behavior is consistent with the equivalent generator function.
Date User Action Args
2014-07-12 20:08:22ezio.melottisetrecipients: + ezio.melotti, gcewing, ncoghlan, hakril
2014-07-12 20:08:22ezio.melottisetmessageid: <>
2014-07-12 20:08:22ezio.melottilinkissue21964 messages
2014-07-12 20:08:22ezio.melotticreate