[Zope] zlib

Andreas Jung Andreas Jung" <andreas@andreas-jung.com
Tue, 10 Jul 2001 08:52:58 -0500


or a very stupid example:

import zlib

data = 'some very long data.....'

x = zlib.compress(data,9)
print zlib.decompress(x)

Easy, isn't it ?

Andreas

----- Original Message ----- 
From: "Andreas Jung" <andreas@andreas-jung.com>
To: <belen@netcom.no>; <zope@zope.org>
Sent: Dienstag, 10. Juli 2001 08:47
Subject: Re: [Zope] zlib


> http://www.python.org/doc/current/lib/module-zlib.html
> 
> >From: <belen@netcom.no>
> >Subject: [Zope] zlib
> > Hello there,
> > 
> > Has anyone used this module before (zlib)? Can anyone show me an 
> > example of how to use it? I have REALLY tried to search for it but 
> > nothing comes out.
> 
> 
> 
> _______________________________________________
> Zope maillist  -  Zope@zope.org
> http://lists.zope.org/mailman/listinfo/zope
> **   No cross posts or HTML encoding!  **
> (Related lists - 
>  http://lists.zope.org/mailman/listinfo/zope-announce
>  http://lists.zope.org/mailman/listinfo/zope-dev )
>