Collin Winter coll...@gmail.com added the comment:
Fixed in r72930 (trunk), r72931 (2.6), r72942 (py3k).
--
resolution: - fixed
stage: patch review - committed/rejected
status: open - closed
___
Python tracker rep...@bugs.python.org
Alexandre Vassalotti alexan...@peadrop.com added the comment:
Looks good to me.
--
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5794
___
___
Collin Winter coll...@gmail.com added the comment:
Bug-fix patch attached. Alexandre, can you take a look? Feel free to
bounce it back if you don't have time.
I'll port to 2.6 and py3k once this is reviewed for trunk.
--
keywords: +26backport, easy, patch
nosy: +alexandre.vassalotti
Changes by Collin Winter coll...@gmail.com:
--
nosy: +collinwinter
___
Python tracker rep...@bugs.python.org
http://bugs.python.org/issue5794
___
___
Python-bugs-list
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
New submission from Carl Witty carl.wi...@gmail.com:
When I try to pickle a recursive tuple (that recurses through a list),
pickle can load the result but cPickle fails with unpickling stack
overflow.
(I just downloaded and built Python 2.6.2 on 64-bit x86 Debian testing
to verify this bug; it