[issue5577] yield in iterators
Guido van Rossum
report at bugs.python.org
Fri Mar 27 19:58:30 CET 2009
Guido van Rossum <guido at python.org> added the comment:
Can anyone think of a *reason* to put a yield inside a generator
expression? ISTM we could just forbid this syntactically. It seems
insane and hard to read so if someone has a reason they should write it
out using an explicit for-statement.
----------
nosy: +gvanrossum
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5577>
_______________________________________
More information about the Python-bugs-list
mailing list