Collin Winter <coll...@gmail.com> added the comment: 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. ---------- assignee: -> collinwinter _______________________________________ Python tracker <rep...@bugs.python.org> <http://bugs.python.org/issue5794> _______________________________________ _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com