Write both in std output and in a file ?

Chris Gonnerman chris.gonnerman at newcenturycomputers.net
Wed Jan 16 14:01:57 CET 2002

----- Original Message ----- 
From: "Philip Swartzleonard" <starx at pacbell.net>

> before you use the file, and optinally
>     out_file.close

You forgot the parens... should be

> after you're done (in python it's done automaticly when the file 
> variable gets destroied, so it's not AS big an issue as C and such)

Actually C does the auto-close also (at least on all platforms I've 
worked on).  C and Python succeed and/or fail at this under the same 

More information about the Python-list mailing list