2007/11/11, Bryan Tong Minh <bryan.tongminh@gmail.com>:
The current gzip module in the Python library sucks. It requires
seekable file objects. This means that, in case you have a socket as
file object, you need to read() it out to a string, put it in a
StringIO and pass that on to the gzip module. This is not only a very
bad way of programming, it also may cause memory issues for large
files. What I would like is a gzip module that performs buffering
itself, so that it can be used (in the new api) without the
intermediate step of the StringIO.