[Q] Deepcopy with Python 2.2 ?
Daniel Klein
danielk at aracnet.com
Sat Dec 29 13:11:00 EST 2001
On 28 Dec 2001 08:47:05 -0800, setar at gmx.de (Oliver Hofmann) wrote:
>'lo everyone!
>
>I've had a few problems with copying objects lately when they
>reference each other. My understanding is that deepcopy should
>take care of that due to the memo - dictionary; this does not
>seem to be the case.
>
>The following code works fine if Base does _not_ inherit
>from object. If it does the result is:
>
>RuntimeError: maximum recursion depth exceeded
You can increase the recursion limit using
sys.setrecursionlimit()
Daniel Klein
More information about the Python-list
mailing list