file.close()

Hallvard B Furuseth (nospam nospam) h.b.furuseth at usit.uio.no
Fri Jul 25 15:51:02 EDT 2003


Francois Pinard wrote:
> For one, I systematically avoid cluttering my code with unneeded `close'.

What happens if close fails during GC?  Will it still raise an
exception?  If so, the exception could happen at an unfortunate place in
the code.

Um.  Explicit close does raise an exception if it fails, right?

-- 
Hallvard




More information about the Python-list mailing list