Something
public python v1 · immutable for line in IFile: #I was having issues with this line for days, but kbrooks, one of the friendly #folks hanging out in #python on irc.freenode.net kindly pointed out to me that #I was using IFile.readline().strip().split() instead of line.strip().split() #which, might I add, gives some really strange behaviour, like skipping to line 173 #of the input file and giving all sorts of fucked up output. self.data.append(line.strip().split())