[issue3119] pickle.py is limited by python's call stack
Aaron Gallagher
report at bugs.python.org
Thu Apr 9 00:41:24 CEST 2009
Aaron Gallagher <habnabit at gmail.com> added the comment:
Okay, here's a new version for the py3k trunk. I'm assuming that this is
not going to make it into 2.x at all, because of the API changes. This
patch only touches the python version of the code and adds a unit test
for testing whether pickle works with arbitrary nesting depth in
test.pickletest. The test is disabled for the C pickle tests currently,
since it causes python to run out of stack space and crash.
So, does _pickle.Pickler's API need to be changed as well? Right now,
pickle._Pickler.dump expects save (and save expects the other save_*
methods) to either return None or an iterable, where the iterable yields
either None or further iterables. I'm sure it wouldn't be hard to make
_pickle.Pickler.dump work the same way, but since C doesn't have
generators, I don't know how exactly the API would translate.
----------
versions: +Python 3.1 -Python 2.6, Python 3.0
Added file: http://bugs.python.org/file13654/pickle3.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue3119>
_______________________________________
More information about the Python-bugs-list
mailing list