It’s a common programming task to loop iteration while not receiving next item. For example:
for sLine in oFile : if ... some logic ... : sLine = oFile.next() ... some more logic ... # at this point i want to continue iteration but without # getting next item from oFile. How can this be done in python?
What you need is a simple, deterministic finite state machine. Something like this…