Jeff Epler wrote: > The iterator for files is a little bit like this generator function: > <SNIP>
Cool thanks for that, it looks like iter(f.readline, '') is the best solution for the job. Tom -- http://mail.python.org/mailman/listinfo/python-list
Jeff Epler wrote: > The iterator for files is a little bit like this generator function: > <SNIP>
Cool thanks for that, it looks like iter(f.readline, '') is the best solution for the job. Tom -- http://mail.python.org/mailman/listinfo/python-list