How to avoid "f.close" (no parens) bug?
Peter
peter at commonlawgov.org
Sun Nov 13 08:29:00 EST 2005
o wrote:
> plez send me
>
>
First off, please explain what you are talking about better next time.
Second, What on earth are you talking about?
"f" is a file object, correct?
Are you trying to close a file by typing f.close or is the file closing
when you type f.close?
If you are trying to close a file with f.close without parenthasies,
then i _realy_ hope that this did not work, as f.close is nothing but a
class method and should be treated like one except when called.
You may want to check out the Python tutorial at python.org
http://docs.python.org/tut/tut.html
HTH,
Peter
More information about the Python-list
mailing list