[issue7471] GZipFile.readline too slow

Antoine Pitrou report at bugs.python.org
Sat Dec 19 22:19:49 CET 2009


Antoine Pitrou <pitrou at free.fr> added the comment:

> isatty() and __iter__() of io.BufferedIOBase raise on closed file and 
> __enter__() raises ValueError with different (generic) message. 
> 
> Should we keep the original GzipFile methods or prefer the implementation 
> of io.BufferedIOBase?

It's fine to use the BufferedIOBase implementation. There's no reason to
call isatty() on or iterate over a closed file.

----------

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


More information about the Python-bugs-list mailing list