[issue12646] zlib.Decompress.decompress/flush do not raise any exceptions when given truncated input streams

Nadeem Vawda report at bugs.python.org
Sun Jul 31 12:37:57 CEST 2011


Nadeem Vawda <nadeem.vawda at gmail.com> added the comment:

Looking at Lib/test/test_zlib.py, it appears that this behaviour is intentional
(see issue8672). I agree that having flush() raise an exception is the Right
Thing, but breaking existing code (which we know depends on this behavior) is
clearly a bad idea. @pitrou - anything thoughts on this?

----------
nosy: +pitrou

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


More information about the Python-bugs-list mailing list