On Sun, 9 May 2010 01:28:14 -0700 (PDT) Matthew Brett <matthew.br...@gmail.com> wrote: > > If instead I do this: > > out = zlib.decompressobj().decompress(data)
How about: d = zlib.decompressobj() out = d.decompress(data) + d.flush() ? Notice the documentation for decompressobj.decompress (emphasis mine): “Decompress string, returning a string containing the uncompressed data corresponding to *at least part* of the data in string”. -- http://mail.python.org/mailman/listinfo/python-list