What do you think the "internal state" of the iterator looks like?
If I repeat the lines read from the file, it will be some kind of buffer file and the position of the character in the current buffer.
If I iterate over the Fibonacci sequence, these will be the last two values used to calculate the next.
If I iterate over a database query, the result may be the database cursor used to read the next row.
, .
, .
Python. , , . , , next() , ( , ).
next() for, , for v in someiterable: ... :
iterator = iter(someiterable)
for v in iterator:
...
, Python , . , for , , . (, - , for, , .)