Hi all, I should know this, but it seems to elude me at present.
I have a loop which is looping through a line of chars by index. So, one of these - for i in range(len(line)): Now, question is, is there a simple way to 'fast forward' index i? At the moment, I'm doing it like this - changeIndex = None al = len(line) for i in range(al): if changeIndex and (i < changeIndex): continue if line[i] == "{": nextRightBracket = line.find("}",i) #other stuff happens changeIndex = nextRightBracket + 1 As I said, pretty dumb question, so somewhat expecting to be told to read Alan's tutorial again. *grin* Regards, Liam Clarke _______________________________________________ Tutor maillist - Tutor@python.org http://mail.python.org/mailman/listinfo/tutor