[issue5210] zlib does not indicate end of compressed stream properly
Amaury Forgeot d'Arc
report at bugs.python.org
Thu Aug 20 02:09:19 CEST 2009
Amaury Forgeot d'Arc <amauryfa at gmail.com> added the comment:
Some comments about the patch:
- In zlibmodule.c, the is_finished member should be an int, and converted
to a PyObject only when requested.
- The test should check that is_finished is False one byte before the
compressed part, and becomes True when the decompressor reads the last
compressed byte. I don't think that dco.flush() is necessary for the
test.
- Also, the last check could be more precise: assertEquals(y1 + y2,
HAMLET_SCENE) and assertEquals(dco.unused_data, HAMLET_SCENE)
----------
nosy: +amaury.forgeotdarc
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue5210>
_______________________________________
More information about the Python-bugs-list
mailing list