First post, recursive references with pickle.

Jeremiah Dodds jeremiah.dodds at gmail.com
Mon Nov 10 18:52:33 EST 2008


On Mon, Nov 10, 2008 at 4:36 PM, George Sakkis <george.sakkis at gmail.com>wrote:

> On Nov 10, 2:23 pm, mark starnes <m.starne... at imperial.ac.uk> wrote:
>
> > Hi everyone, this is my first post to this group, so please be gentle.
> >
> > I've written a class which, when I attempt to pickle, gives the error:
> >
> > *** RuntimeError: maximum recursion depth exceeded
> >
> > Is there a way to make pickle display data about what it's trying
> > to do?  I'm thinking that if so, the recursive component will be
> > immediately visible, easing the bug hunt.
> >
>

Your class doesn't happen to include BeautifulSoup objects, does it?

Or:

" Trying to pickle a highly recursive data structure may exceed the maximum
recursion depth, a RuntimeError will be raised in this case. You can
carefully raise this limit with sys.setrecursionlimit()."

>From http://docs.python.org/library/pickle.html
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.python.org/pipermail/python-list/attachments/20081110/5e918de5/attachment-0001.html>


More information about the Python-list mailing list