Error opening file ! Help, please
Alex Martelli
aleax at aleax.it
Fri Feb 1 22:23:12 EST 2002
gimar wrote:
> Sometimes when I try to create an output file executing:
>
> f=open('\paul','w')
>
> I receive the following error message:
> "TypeError: object of type 'list' is not callable".
> This has no sense for me. Can you explain me what's happening ?
Looks like you're rebinding name 'open' to some list object. If
you're sure you have no "open = ..." around, likeliest mistake on
your part is probably a "from X import *" for some value of X.
Alex
More information about the Python-list
mailing list