zlib.decompress fails, zlib.decompressobj succeeds - bug or feature?
Antoine Pitrou
solipsis at pitrou.net
Sun May 9 13:33:32 EDT 2010
On Sun, 9 May 2010 09:25:16 -0700 (PDT)
Matthew Brett <matthew.brett at gmail.com> wrote:
> > 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?
Yes.
> But, no, d.flush() returns the empty string after decompressing
> ``data``.
Hmm, then it's a bug. Can you report it to http://bugs.python.org ?
Thank you
Antoine.
More information about the Python-list
mailing list