Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Anand Balachandran Pillai
Sample file containing code (not a patch) posted to the bug. If the code is fine, I will make a patch. Thanks --Anand On Fri, Aug 1, 2008 at 11:34 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Fri, Aug 1, 2008 at 12:59 PM, Anand Balachandran Pillai > <[EMAIL PROTECTED]> wrote: >> Hi Benj

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Benjamin Peterson
On Fri, Aug 1, 2008 at 12:59 PM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > Hi Benjamin, > > Filed http://bugs.python.org/issue3488. > > Btw I have a fix ready for this, but I am not in the developer list and > do not have permissions for checkins. Great! Post the patch to the issue a

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Anand Balachandran Pillai
Hi Benjamin, Filed http://bugs.python.org/issue3488. Btw I have a fix ready for this, but I am not in the developer list and do not have permissions for checkins. Thanks --Anand On Fri, Aug 1, 2008 at 9:02 PM, Benjamin Peterson <[EMAIL PROTECTED]> wrote: > On Fri, Aug 1, 2008 at 8:57 AM, Ana

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Benjamin Peterson
On Fri, Aug 1, 2008 at 8:57 AM, Anand Balachandran Pillai <[EMAIL PROTECTED]> wrote: > 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

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Antoine Pitrou
Anand Balachandran Pillai gmail.com> writes: > > 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. I also think gzip.compress() and gzip.decompress() would

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Anand Balachandran Pillai
On Fri, Aug 1, 2008 at 7:32 PM, Oleg Broytmann <[EMAIL PROTECTED]> wrote: > On Fri, Aug 01, 2008 at 07:27:38PM +0530, Anand Balachandran Pillai wrote: >> Of these, I have a gripe with gzip - it does not provide a simple >> way of compressing/uncompressing a string > > It does. It is zlib.compress

Re: [Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Oleg Broytmann
On Fri, Aug 01, 2008 at 07:27:38PM +0530, Anand Balachandran Pillai wrote: > Of these, I have a gripe with gzip - it does not provide a simple > way of compressing/uncompressing a string It does. It is zlib.compress() and zlib.decompress(). Oleg. -- Oleg Broytmannhttp://phd.p

[Python-3000] Providing compress/uncompress functions in gzip

2008-08-01 Thread Anand Balachandran Pillai
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, zli