[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams
Oleg Oshmyan
report at bugs.python.org
Tue Aug 2 18:24:06 CEST 2011
Oleg Oshmyan <chortos at inbox.lv> added the comment:
I like the new patch, but shouldn’t the default be to behave the same way zlib.decompress() behaves, i. e. raise? (Or perhaps zlib.decompress() should be modified not to raise instead. I’m just aiming at consistency.) Of course this will break code that relies on the old behaviour but the fix (adding strict=False) is trivial.
----------
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue12646>
_______________________________________
More information about the Python-bugs-list
mailing list