Author collinwinter
Recipients collinwinter, cwitty
Date 2009-04-24.16:51:24
SpamBayes Score 5.40959e-06
Marked as misclassified No
Message-id <1240591885.74.0.592766435485.issue5794@psf.upfronthosting.co.za>
In-reply-to
Content
Interestingly, it only fails with protocol 0:

>>> v = ([],)
>>> v[0].append(v)
>>> import pickle,cPickle
>>> cPickle.loads(pickle.dumps(v, 0))
Traceback (most recent call last):
  File "<stdin>", line 1, in <module>
cPickle.UnpicklingError: unpickling stack underflow
>>> cPickle.loads(pickle.dumps(v, 1))
([([...],)],)
>>> cPickle.loads(pickle.dumps(v, 2))
([([...],)],)
>>>


I'll see if I can come up with a fix.
History
Date User Action Args
2009-04-24 16:51:25collinwintersetrecipients: + collinwinter, cwitty
2009-04-24 16:51:25collinwintersetmessageid: <1240591885.74.0.592766435485.issue5794@psf.upfronthosting.co.za>
2009-04-24 16:51:24collinwinterlinkissue5794 messages
2009-04-24 16:51:24collinwintercreate