Erik Carstensen <sandb...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue8886>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to