[issue8886] zipfile.ZipExtFile is a context manager, but that is not documented

Erik Carstensen report at bugs.python.org
Thu Jun 3 14:10:19 CEST 2010


Erik Carstensen <sandberg at virtutech.com> added the comment:

Sorry, my mistake, ZipExtFile is indeed a context manager: I ran into the problem in 2.6, and checked whether it was fixed in 2.7; when quickly reading zipfile.py I saw that only ZipFile had context manager methods, I missed the BufferedIOBase inheritance. And when reading the tests I didn't see any 'with ZipFile.open(x) as y' expression.

Maybe it still makes sense to document and test this. Changing the title.

----------
title: zipfile.ZipExtFile should be a context manager -> zipfile.ZipExtFile is a context manager, but that is not documented

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue8886>
_______________________________________


More information about the Python-bugs-list mailing list