Message116395
> 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:
# ... |
|
Date |
User |
Action |
Args |
2010-09-14 12:45:17 | pitrou | set | recipients:
+ pitrou, r.david.murray, john.admanski |
2010-09-14 12:45:17 | pitrou | set | messageid: <1284468317.49.0.929311247144.issue9846@psf.upfronthosting.co.za> |
2010-09-14 12:45:16 | pitrou | link | issue9846 messages |
2010-09-14 12:45:13 | pitrou | create | |
|