How to avoid "f.close" (no parens) bug?

Carsten Haese carsten at uniqsys.com
Sun Nov 13 09:40:51 EST 2005


On Thu, 2 Nov 2006 23:56:22 +0200, o wrote 
> plez send me 
>  

Please tell us what bug you're talking about:

A) Python closed the file but you expected it not to.
B) Python didn't close the file but you expected it to.
C) Python didn't warn you when you wrote "f.close" instead of "f.close()".
D) Something else. Please elaborate by giving us a code example, a description
of what you expected to happen, and a description of what happened instead.

Best regards,

Carsten Haese.




More information about the Python-list mailing list