[issue5577] yield in iterators

qwjqwj report at bugs.python.org
Fri Mar 27 17:14:45 CET 2009


qwjqwj <qwj at papayamobile.com> added the comment:

>>> x = {(yield i) for i in range(10)}
>>> x
<generator object <setcomp> at 0x02A453F0>
>>> list(x)
[0, 1, 2, 3, 4, 5, 6, 7, 8, 9, {None}]

----------

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5577>
_______________________________________


More information about the Python-bugs-list mailing list