Hi,

greg wrote:
Mark wrote:
Thanks guys.  This is for serializing to disk.  I was hoping to not
have to use too many intermediate steps

You should be able to use a gzip.GzipFile
or bz2.BZ2File and pickle straight into it.


also:

import codecs

out=codecs.open("picklefile.bz2",mode="wb",encoding="bz2")

pickle.dump(obj,out,pickle.pickle.HIGHEST_PROTOCOL)
out.close()

should work (and has far less code :-)

Regards
Tino

Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

--
http://mail.python.org/mailman/listinfo/python-list

Reply via email to