EOFError with fileinput

Mark Lawrence breamoreboy at yahoo.co.uk
Mon Aug 16 12:58:35 EDT 2010


On 16/08/2010 17:29, Alex van der Spek wrote:
> 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

I'm not sure exactly what you're asking here.  Could you a brief 
description as to what you're trying to achieve, then put the question 
again.

Cheers.

Mark Lawrence.




More information about the Python-list mailing list