On Jun 16, 8:24 am, Bruno Desthuilliers <bruno. [EMAIL PROTECTED]> wrote: > > IIRC (please someone correct me if I'm wrong), proper release of file > resources as soon as the file object gets out of scope is not garanteed > in the language spec and is implementation dependant.
Right. Resources are freed in CPython right after they drop out of scope. This is not true in other implementations, so it's best to be explicit. -- http://mail.python.org/mailman/listinfo/python-list