how to gunzip a string ?

Bill Loren lorenb2 at bezeqint.net
Wed Jul 30 10:16:32 EDT 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
equivalent.

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

any suggestions ?

thanks!
~ B









More information about the Python-list mailing list