Serhiy Storchaka added the comment:

We can add in readline() the check that GzipFile is opened in read mode. 
However it will slowdown readline(). See alse issue18003.

Note that the original example is not correct. zlib.compress() doesn't produce 
legal Gzip file.

----------
nosy: +serhiy.storchaka

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue18323>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to