On Fri, Nov 24, 2017 at 7:22 PM, 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`. IMO disallowing using await in comprehensions would be a huge mistake. I've personally seen a lot of code that uses the syntax. Moreover, I haven't seen any complaints about await expressions in comprehensions in this thread or *anywhere else*. In this thread I only see complaints about 'yield' expression, and that's easy to understand -- yield in comprehensions is just unusable. 'await' is fundamentally different, because it's essentially a calling convention. While "provisional" status for a PEP ultimately gives us power to remove every trace of it in the next release, I think that it decisions like that have to be based on some commonly reported problems and complaints. My 2c. Yury
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