I have a problem with iterating on a file. Here\'s what I type on the interpreter and the result:
>>> f = open(\'baby1990.html\', \'rU\') >>&g
Of course. That is normal and sane behaviour. Instead of closing and re-opening, you could rewind the file.
rewind