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 Ralph.Broenink
Recipients Ralph.Broenink
Date 2014-08-06.07:56:40
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1407311800.94.0.537081542584.issue22154@psf.upfronthosting.co.za>
In-reply-to
Content
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())
History
Date User Action Args
2014-08-06 07:56:40Ralph.Broeninksetrecipients: + Ralph.Broenink
2014-08-06 07:56:40Ralph.Broeninksetmessageid: <1407311800.94.0.537081542584.issue22154@psf.upfronthosting.co.za>
2014-08-06 07:56:40Ralph.Broeninklinkissue22154 messages
2014-08-06 07:56:40Ralph.Broeninkcreate