cannot write to file after close()

Rainer Hubovsky hubovsky at atlan.hubovsky.net
Mon Sep 26 01:50:00 EDT 2005


Thank you Reinhold, that was the solution. But just because I am curious:
what is this statement without the parentheses? After all it is a valid
statement...

  Rainer


In article <3pog58Fas5ndU2 at individual.net>, Reinhold Birkenfeld wrote:
> Is the above exactly your code? If yes, it should be
> 
> f.close()
> 
> The parentheses are necessary to make the statement a function call.
> 
> Reinhold




More information about the Python-list mailing list