[issue10544] yield expression inside generator expression does nothing

Ivan Levkivskyi report at bugs.python.org
Thu Nov 23 11:40:00 EST 2017


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

Well, after all I am thinking maybe it is indeed makes sense to ban `yield` inside both sync/async and both comprehensions/generator expressions. Since we already have a smörgåsbord of intuitive behaviors.

This, _together_ with extensive clarification to the docs and error messages can fix the problem.

----------

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


More information about the Python-bugs-list mailing list