On Thu, 02 Aug 2007 08:17:13 +0200, Adam Kubica wrote: > On Wed, 01 Aug 2007 13:54:21 +0000, kyosohma wrote: > >> On Aug 1, 8:44 am, Adam Kubica <[EMAIL PROTECTED]> wrote: >>> Hellou. >>> >>> Anybody know about code that work equivalent to gzinflate() >>> function used in PHP? >>> >>> I search via google but I don't found anything sensible :-( >> >> I'm not sure what gzinflate does, but it looks like it's some kind of >> compression/decompression method. Python can do that. Check out the >> following links: >> >> http://www.python.org/doc/lib/module-gzip.html >> http://www.python.org/doc/lib/module-zlib.html >> http://python.active-venture.com/lib/module-bz2.html >> >> Hopefully this is the type of thing you were looking for. >> > > OK, but it isn't that I looking for :-( > > gzinflate() is reversed function of gzdeflate(), zlib module allows to use > compress methon only, it's equivalent to gzcompress() in PHP.
After some king of brain fucked tries, I found: zlib.decompress( data ) #equivalent gzdecompress() zlib.decompress( data, -zlib.MAX_WBITS ) #equivalent gzdeflate() Thanks :-) -- http://mail.python.org/mailman/listinfo/python-list