I just came across this piece of code
while 1: line = data.readline() if not line: break #...
and thought, there must
You could do:
line = 1 while line: line = data.readline()