EOFError with fileinput

Alex van der Spek zdoor at xs4all.nl
Mon Aug 16 12:29:06 EDT 2010


Using the fileinput module to process lists of files:

>>>for line in fileinput.input(logs):

Unfortunately, EOFError does not seem to indicate the end-of-file condition 
correctly when using fileinput.

How would you find the EOF file for all the files in the file list 'logs'?

Thank you,
Alex van der Spek 




More information about the Python-list mailing list