Write both in std output and in a file ?
Chris Gonnerman
chris.gonnerman at newcenturycomputers.net
Wed Jan 16 08:01:57 EST 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
out_file.close()
> 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
circumstances.
More information about the Python-list
mailing list