how to gunzip a string ?

Bill Loren lorenb2 at
Wed Jul 30 16:16:32 CEST 2003

I guess I really need some sort of library that will do a gzip decoding to a
compressed string.
assume that I have a gzipped_string_reply I got from an HTTP server,
It'd be superb to have a gunzip class that takes it and return its decoded

I managed to do it with the gzip library only after saving the string to a
file and then opening and reading it
with, but it's extremely ugly.

any suggestions ?

~ B

More information about the Python-list mailing list