Equivalent to gzinflate() function in PHP.
coyote_x at artcom.pl
Thu Aug 2 08:27:05 CEST 2007
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 <coyot... at artcom.pl> wrote:
>>> 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:
>> 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()
More information about the Python-list