Showing content from http://mail.python.org/pipermail/python-dev/attachments/20171125/cc6acdd0/attachment.html below:
<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On 25 November 2017 at 01:22, Guido van Rossum <span dir="ltr"><<a href="mailto:guido@python.org" target="_blank">guido@python.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div dir="ltr">The more I hear about this topic, the more I think that `await`, `yield` and `yield from` should all be banned from occurring in all comprehensions and generator expressions. That's not much different from disallowing `return` or `break`.<span class="gmail-"><br clear="all"><div><div class="gmail_extra"><br></div></div></span></div></blockquote><div><br></div><div>IIUC this would essentially mean rejecting PEP 530.</div><div></div><div>What do you think about banning `await`, `yield` and `yield from` only from generator expressions?</div><div>Comprehensions can be fixed (just make them equivalent to for-loops without leaks as discussed).<br></div><div><br></div><div>--</div><div>Ivan</div><div><br></div><div><br></div></div></div></div>
RetroSearch is an open source project built by @garambo
| Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4