pickle: maximum recursion depth exceeded

Ulrich Petri ulope at gmx.de
Mon Nov 3 18:46:40 EST 2003


"Anthony Briggs" <abriggs at westnet.com.au> schrieb im Newsbeitrag
news:mailman.360.1067854529.702.python-list at python.org...
> At 11:29 AM +1100 3/11/03, Simon Burton wrote:
> >
> >However, it works when i try the smallest examples and use
> >sys.setrecursionlimit(4000)
> >
> >This seems like a limitation in the pickling code. Yes?
>
> I would suspect that you have a loop in your definitions, eg. A
> imports B, and B imports A, particularly since you're trying small
> examples, and they're still exceeding the recursion depth.
>

Unlikely, since it works if he sets recursionlimit(4000).
As others put it:
"our new model of Cray is fast enough to finilize an infinite loop in few
nanosecs"

Ciao Ulrich






More information about the Python-list mailing list