Alex Gaynor added the comment: Since the paste is dead: i = filter(bool, range(5)) for _ in range(1000000): i = filter(bool, i) for p in i: print(p) ---------- _______________________________________ Python tracker <report at bugs.python.org> <http://bugs.python.org/issue14010> _______________________________________