[issue7471] GZipFile.readline too slow

Antoine Pitrou report at bugs.python.org
Fri Dec 18 16:01:25 CET 2009


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

Two things:
- since it implements common IO operations, the GzipFile class could
inherit io.BufferedIOBase. It would also alleviate the need to
reimplement readinto(): BufferedIOBase has a default implementation
which should be sufficient.
- rather than `type(data) is memoryview`, the preferred idiom is
`isinstance(data, memoryview)`.

----------

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


More information about the Python-bugs-list mailing list