[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams
Nadeem Vawda
report at bugs.python.org
Sat Aug 6 11:24:50 CEST 2011
Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:
> I have another proposition (as an alternative). The new _bz2.BZ2Decompressor
> objects have an attribute called eof which is False until the end of the
> stream is read. The same attribute could be added to zlib.Decompress objects.
+1, I like the idea of being consistent across related modules.
I'll put together a patch.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12646>
_______________________________________
More information about the Python-bugs-list
mailing list