On 25 November 2017 at 01:22, Guido van Rossum <guido at python.org> wrote: > 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`. > > IIUC this would essentially mean rejecting PEP 530. What do you think about banning `await`, `yield` and `yield from` only from generator expressions? Comprehensions can be fixed (just make them equivalent to for-loops without leaks as discussed). -- Ivan -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://mail.python.org/pipermail/python-dev/attachments/20171125/cc6acdd0/attachment.html>
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