to close or not to close?

Grant Griffin g2 at seebelow.org
Mon Jul 31 17:48:02 EDT 2000


Hi Gang,

Forgive me if this is a FAQ, but is it considered good Python form to close a
file whose variable is just about to go out of scope (and thus be automatically
closed)?  Or should one just omit that?

tempted-to-omit-needless-code-ly y'rs,

=g2

_____________________________________________________________________

Grant R. Griffin                                       g2 at dspguru.com
Publisher of dspGuru                           http://www.dspguru.com
Iowegian International Corporation            http://www.iowegian.com




More information about the Python-list mailing list