John Admanski <jadman...@gmail.com> added the comment:

I'm not sure that's much of an improvement on the existing behavior, though; as 
I mentioned you can already work around it by killing all the references to the 
ZipExtFile and the underlying file object will get automatically closed if the 
ZipExtFile is the only object using it, so adding an explicit __del__ that does 
the same thing isn't much of an improvement.

Since ZipExtFile is supposed to be a file-like object (albeit a read-only one) 
it would make sense to be able to release the underlying resources the same way 
you normally do with a file...by closing it.

----------

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue9846>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to