This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author alexandre.vassalotti
Recipients Zeroth, alexandre.vassalotti, gpolo
Date 2008-06-05.23:50:18
SpamBayes Score 0.01653889
Marked as misclassified No
Message-id <1212709821.12.0.279076250719.issue3043@psf.upfronthosting.co.za>
In-reply-to
Content
Your graph is simply too deep for Python to handle it. The copy module
(and also the pickle) pushes a new stack frame every time a new
container object is encountered. Therefore, there is a recursion limit
to prevent the interpreter from crashing.

If you want, you can carefully increase the limit by using the function
`sys.setrecursionlimit`. Using your example:

   >>> sys.setrecursionlimit(2000)
   >>> g2 = copy.deepcopy(g)
   >>> # no error
History
Date User Action Args
2008-06-05 23:50:21alexandre.vassalottisetspambayes_score: 0.0165389 -> 0.01653889
recipients: + alexandre.vassalotti, gpolo, Zeroth
2008-06-05 23:50:21alexandre.vassalottisetspambayes_score: 0.0165389 -> 0.0165389
messageid: <1212709821.12.0.279076250719.issue3043@psf.upfronthosting.co.za>
2008-06-05 23:50:19alexandre.vassalottilinkissue3043 messages
2008-06-05 23:50:18alexandre.vassalotticreate