[issue5577] yield in iterators
qwjqwj
report at bugs.python.org
Fri Mar 27 17:13:03 CET 2009
qwjqwj <qwj at papayamobile.com> added the comment:
>>> x = ((yield i) for i in range(10))
>>> list(x)
[0, None, 1, None, 2, None, 3, None, 4, None, 5, None, 6, None, 7, None,
8, None, 9, None]
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5577>
_______________________________________
More information about the Python-bugs-list
mailing list