PicklingError with md5.md5() object Von: Ulli Stein <mennosimons at gmx.net> Datum: Dienstag, 24. September 2002 17:03:09 Gruppen: comp.lang.python Folgenachricht an: mennosimons at gmx.net Keine Referenzen

Ulli Stein mennosimons at gmx.net
Tue Sep 24 12:00:39 EDT 2002


while trying to pickle a md5 instance I get the following error:

>>> import cPickle, md5
>>> f=open("/tmp/t", "w")
>>> p = cPickle.Pickler(f)
>>> m=md5.md5()
>>> p.dump(m)
Traceback (most recent call last):
  File "<stdin>", line 1, in ?
cPickle.UnpickleableError: Cannot pickle <type 'md5.md5'> objects

What should I do? The marshal module is also not recommended for this task.


More information about the Python-list mailing list