[Python-Dev] Generator objects and list comprehensions?

Steve Holden steve at holdenweb.com
Wed Jan 25 17:23:10 EST 2017


On Wed, Jan 25, 2017 at 6:28 AM, Joe Jevnik <jjevnik at quantopian.com> wrote:

> That was a long way to explain what the problem was. I think that that
> solution is to stop using `yield` in comprehensions because it is
> confusing, or to make `yield` in a comprehension a syntax error.
>
> Thanks for the very clear explanation.

Would an addition to the documentation for 3.6 giving an abbreviated
version help while the devs consider whether any changes are appropriate
for 3.7?


Steve Holden
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-dev/attachments/20170125/a0247d31/attachment.html>


More information about the Python-Dev mailing list