Consider:
>>> lst = iter([1,2,3]) >>> next(lst) 1 >>> next(lst) 2
So, advancing the iterator is, as expected, ha
Something is wrong with your Python/Computer.
a = iter(list(range(10))) for i in a: print(i) next(a) >>> 0 2 4 6 8
Works like expected.
Tested in Python 2.7 and in Python 3+ . Works properly in both