ZIP files

Mike Meyer mwm at mired.org
Wed Nov 10 16:16:26 EST 2004


Ivo Woltring <Python at IvoNet.nl> writes:

> On 10 Nov 2004 08:05:28 -0800, oriana.falco at thalesesec.com (Oriana)
> You might wish to try using a larger buffer than 8192 bytes.  BTW,
> note that Python automatically closes the files since the file objects
> are released when the function returns.

This behavior of file objects isn't guaranteed and doesn't happen in
Jython. It's better - and more pythonic - to explicitly close files.

After all, explicit is better than implicit.

      <mike
-- 
Mike Meyer <mwm at mired.org>			http://www.mired.org/home/mwm/
Independent WWW/Perforce/FreeBSD/Unix consultant, email for more information.



More information about the Python-list mailing list