zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?
Matthew Brett
matthew.brett at gmail.com
Sun May 9 12:25:16 EDT 2010
Hi,
Thanks for the reply.
> > If instead I do this:
>
> > out = zlib.decompressobj().decompress(data)
>
> How about:
>
> d = zlib.decompressobj()
> out = d.decompress(data) + d.flush()
Do you mean, that you would then expect the decompressobj method to
fail as well?
But, no, d.flush() returns the empty string after decompressing
``data``.
Thanks again,
Matthew
More information about the Python-list
mailing list