<p dir="ltr"><br>
On 10 Feb 2015 19:41, "Paul Moore" <<a href="mailto:p.f.moore@gmail.com">p.f.moore@gmail.com</a>> wrote:<br>
><br>
> I agree completely with Donald here. The comprehension syntax has<br>
> consistently been the part of the proposal that has resulted in<br>
> confused questions from reviewers, and I don't think it's at all<br>
> intuitive.<br>
><br>
> Is it allowable to vote on parts of the PEP separately? If not, then<br>
> the comprehension syntax is enough for me to reject the whole<br>
> proposal. If we can look at parts in isolation, I'm OK with saying -1<br>
> to the comprehension syntax and then we can look at whether the other<br>
> parts of the PEP add enough to be worth it (the comprehension side is<br>
> enough of a distraction that I haven't really considered the other<br>
> bits yet).</p>
<p dir="ltr">It occurs to me that the PEP effectively changes the core of a generator expression from "yield x" to "yield from x" if the tuple expansion syntax is used. If we rejected the "yield *x" syntax for standalone yield expressions, I don't think it makes sense to now add it for generator expressions.</p>
<p dir="ltr">So I guess that adds me to the -1 camp on the comprehension/generator expression part of the story - it doesn't make things all that much easier to write than the relevant nested loop, and it makes them notably harder to read.</p>
<p dir="ltr">I haven't formed an opinion on the rest of the PEP yet, as it's been a while since I read the full text. I'll read through the latest version tomorrow.</p>
<p dir="ltr">Regards,<br>
Nick.</p>
<p dir="ltr">><br>
> Paul<br>
> _______________________________________________<br>
> Python-Dev mailing list<br>
> <a href="mailto:Python-Dev@python.org">Python-Dev@python.org</a><br>
> <a href="https://mail.python.org/mailman/listinfo/python-dev">https://mail.python.org/mailman/listinfo/python-dev</a><br>
> Unsubscribe: <a href="https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com">https://mail.python.org/mailman/options/python-dev/ncoghlan%40gmail.com</a><br>
</p>