[issue9846] ZipExtFile provides no mechanism for closing the underlying file object

Antoine Pitrou report at bugs.python.org
Mon Sep 13 19:02:20 CEST 2010


Antoine Pitrou <pitrou at free.fr> added the comment:

Indeed. However, the ZipFile itself knows whether to close the file (self._filePassed). By adding a constructor argument to ZipExtFile and a __del__ method, it would solve the issue.

----------
nosy: +pitrou
stage:  -> needs patch
versions: +Python 3.2 -Python 3.1

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue9846>
_______________________________________


More information about the Python-bugs-list mailing list