Author pythonhacker
Recipients pythonhacker
Date 2008-08-01.17:56:55
SpamBayes Score 5.27013e-06
Marked as misclassified No
Message-id <1217613416.28.0.352724086622.issue3488@psf.upfronthosting.co.za>
In-reply-to
Content
Python has great in-built support for all sorts of text compression
including bzip, gzip, tarfile and other general purpose modules like
zlib etc.

Of these, I have a gripe with gzip - it does not provide a simple
way of compressing/uncompressing a string like the other modules
to (namely bzip, zlib) at the module level.

It is relatively easy to perform gzip de-compression using the
GzipFile class and StringIO objects, but compression is not
that straight-forward.

It would be great for the gzip module to have "compress"
and "uncompress" functions at the module level without having
to go through GzipFile every-time.

I think being able to send gzip compressed strings directly would be
useful for applications which require to send gzip data over the wire
without having to write to files and read-back.
History
Date User Action Args
2008-08-01 17:56:56pythonhackersetrecipients: + pythonhacker
2008-08-01 17:56:56pythonhackersetmessageid: <1217613416.28.0.352724086622.issue3488@psf.upfronthosting.co.za>
2008-08-01 17:56:55pythonhackerlinkissue3488 messages
2008-08-01 17:56:55pythonhackercreate