This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author pitrou
Recipients john.admanski, pitrou, r.david.murray
Date 2010-09-14.12:45:13
SpamBayes Score 4.282449e-06
Marked as misclassified No
Message-id <1284468317.49.0.929311247144.issue9846@psf.upfronthosting.co.za>
In-reply-to
Content
> Antoine, any reason not to put the close in the ZipFileExt close method 
> instead of a __del__ method?  (And document it, of course).

You are right, a close() method would be enough.
Furthermore, ZipExtFile already supports the context manager protocol (implicitly calling BufferedIOBase.close()), so you will simply be able to write:

with myzipfile.open("README", "r") as f:
    # ...
History
Date User Action Args
2010-09-14 12:45:17pitrousetrecipients: + pitrou, r.david.murray, john.admanski
2010-09-14 12:45:17pitrousetmessageid: <1284468317.49.0.929311247144.issue9846@psf.upfronthosting.co.za>
2010-09-14 12:45:16pitroulinkissue9846 messages
2010-09-14 12:45:13pitroucreate