You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.
Note: these values reflect the state of the issue at the time it was migrated and might not reflect the current state.
Show more details
assignee='https://github.com/ezio-melotti'closed_at=<Date2009-12-30.13:55:28.187>created_at=<Date2009-03-18.18:24:22.081>labels= ['type-feature', 'library']
title='zipfile - add __exit__ attribute to make ZipFile object compatible with with_statement'updated_at=<Date2009-12-30.13:55:28.160>user='https://bugs.python.org/petruchio'
I think there should also be one or more tests that check if the file is
closed correctly after the __exit__, in normal conditions and possibly
in different situations (e.g. when an error is raised ).
Unlike regular file objects, ZipFile objects don't have a 'closed'
attribute, instead they set self.fp to None when the 'close' method is