qwjqwj <q...@papayamobile.com> added the comment: Why should yield can be put inside the iterator? The behavior here is very weired.
>>> x = [(yield i) for i in range(10)] >>> print(list(x)) [0, 1, 2, 3, 4, 5, 6, 7, 8, 9, [None, None, None, None, None, None, None, None, None, None]] ---------- _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5577> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com