T
Thomas Lehmann
How do I implement best to use pickle that way that the file is zipped?
How do I implement best to use pickle that way that the file is zipped?
s = cPickle.dumps(obj)
z = zipfile.Zipfile("filename.zip","w",zipfile.ZIP_DEFLATED)
z.writestr("arcname.pkl",s)
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.