A
Alex Polite
I need to put recursive data structures on disc and found out that cPickle
doesn't like recursion.
What are my options?
alex
doesn't like recursion.
What are my options?
alex
* Alex Polite said:I need to put recursive data structures on disc and found out that
cPickle doesn't like recursion.
Hm, the documentation of Python 2.3.2, Section 3.14.1 "Relationship to
other Python modules" states that recursive objects, which are defined
as "objects that contain references to themselves" can't be handled by
marshal, but that pickle and cPickle should be fine: "pickle stores
such objects only once, and ensures that all other references point to
the master copy".
What exactly are your problems?
If I up the recusionlimit the testsuit will segfault.
I need to put recursive data structures on disc and found out that cPickle
doesn't like recursion.
What are my options?
alex
Alex said:Christian Tismer had the kindness to look at my code and point out
that I might want to use pickle instead of cPickle, at least if I
wanted to benefit from using stackless. Chaning from cPickle to pickle
allowed to run the code under stackless as well as under standard
python.
thanks Christian.
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.