Message224914
In Python 3.2, context manager support for ZipFile was added. However, I would also love the ability for ``ZipFile.open`` to be used as a context manager, e.g.:
from zipfile import ZipFile
with ZipFile("test.zip", "r") as z:
with z.open("test.txt", "r") as f:
print(f.read()) |
|
Date |
User |
Action |
Args |
2014-08-06 07:56:40 | Ralph.Broenink | set | recipients:
+ Ralph.Broenink |
2014-08-06 07:56:40 | Ralph.Broenink | set | messageid: <1407311800.94.0.537081542584.issue22154@psf.upfronthosting.co.za> |
2014-08-06 07:56:40 | Ralph.Broenink | link | issue22154 messages |
2014-08-06 07:56:40 | Ralph.Broenink | create | |
|