[Tutor] fileinput problem

Alan G alan.gauld at freenet.co.uk
Sat Jun 25 13:54:40 CEST 2005


> Traceback (most recent call last):
>   File "./Python/fileinput.py", line 1, in ?
>     import sys, string, fileinput

You are importing fileinput from a file called fileinput.
It therefore reads your file and notices that you have 
no input method...

Don't call your program the same name as the module!

HTH,

Alan G.



More information about the Tutor mailing list