is there a way to iterate again within the for loop? For example:
for x in list: if(condition): #I\'d like to grab the next iteration of the lis
You can always bypass the for loop and just use the iterator explicitly:
iter = list.__iter__() while True: x = iter.next() ... if (condition): x = iter.next() ...
This will throw a StopIteration exception when it reaches the end of the list.