On 25 November 2017 at 01:22, Guido van Rossum <gu...@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
_______________________________________________ Python-Dev mailing list Python-Dev@python.org https://mail.python.org/mailman/listinfo/python-dev Unsubscribe: https://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com