Alex Polite wrote: > On ons, maj 26, 2004 at 02:22:21 +0000, Alex Polite wrote: > >>I need to put recursive data structures on disc and found out that cPickle >>doesn't like recursion. >> >>What are my options? >> >>alex > > > 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. Although I'm happy that things work even without Stackless, this implies that there is an incompatibility between pickle and cPickle. If objects are treated identically by both, that normal Python must use even more stack space for recursive objects that cPickle, so I'd expect it crashes earlier. But it doesn't crash. cPickle must have a bug. ciao - chris -- Christian Tismer :^) <mailto:tismer at stackless.com> Mission Impossible 5oftware : Have a break! Take a ride on Python's Johannes-Niemeyer-Weg 9a : *Starship* http://starship.python.net/ 14109 Berlin : PGP key -> http://wwwkeys.pgp.net/ work +49 30 89 09 53 34 home +49 30 802 86 56 mobile +49 173 24 18 776 PGP 0x57F3BF04 9064 F4E1 D754 C2FF 1619 305B C09C 5A3B 57F3 BF04 whom do you want to sponsor today? http://www.stackless.com/
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4