AssertionError in pickle's memoize function

Michael Hohn hohn at hooknose.lbl.gov
Fri Oct 29 13:40:00 EDT 2004


Hi,

under python 2.2, the pickle/unpickle sequence incorrectly restores
a larger data structure I have.

Under Python 2.3, these structures now give an explicit exception from 
Pickle.memoize():
    assert id(obj) not in self.memo

I'm shrinking the offending data structure down to find the problem
and provide an easily reproducible example, 
but maybe someone on the list could tell me under what general
conditions this assertion is expected to fail.

Thanks,
    Michael



More information about the Python-list mailing list