How do I tell the difference between the end of a text file, and an empty line in a text file?
James Stroud
jstroud at mbi.ucla.edu
Wed May 16 17:58:13 EDT 2007
walterbyrd wrote:
> Python's lack of an EOF character is giving me a hard time.
>
> I've tried:
>
[ stuff ]
for s in f:
do_whatever_with_s(s)
James
More information about the Python-list
mailing list