[issue10544] yield expression inside generator expression does nothing

Ivan Levkivskyi report at bugs.python.org
Thu Nov 23 06:47:34 EST 2017


Ivan Levkivskyi <levkivskyi at gmail.com> added the comment:

Nick,

> Yury took all this into account when designing the interaction between `await` and comprehensions (which is why that's in a better state), but for `yield` we inherited the existing behaviour of any other nested function.

Actually the fact that `await` in comprehensions already works right is one of my main arguments that we can also fix `yield`. So I am totally with Serhiy here.

----------
nosy: +yselivanov

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue10544>
_______________________________________


More information about the Python-bugs-list mailing list