Neil Cerutti <horpner at yahoo.com> wrote: > Speaking of the iter builtin function, is there an example of the > use of the optional sentinel object somewhere I could see? for line in iter(open('somefile.txt', 'r').readline, ''): print line