Zipped and pickle

Carl Banks pavlovevidence at
Wed Sep 16 21:54:37 CEST 2009

On Sep 16, 4:40 am, Thomas Lehmann <Iris-und-Thomas-Lehm... at T-> wrote:
> How do I implement best to use pickle that way that the file is zipped?


s = cPickle.dumps(obj)
z = zipfile.Zipfile("","w",zipfile.ZIP_DEFLATED)

Carl Banks

More information about the Python-list mailing list