Bugs item #839075, was opened at 2003-11-10 08:21 Message generated for change (Comment added) made by birkenfeld You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=839075&group_id=5470
Please note that this message will contain a full copy of the comment thread, including the initial issue submission, for this request, not just the latest update. Category: Documentation Group: Python 2.3 >Status: Closed >Resolution: Fixed Priority: 5 Submitted By: Simon David Burton (simonb1) Assigned to: Nobody/Anonymous (nobody) Summary: Document that highly recursive data cannot be pickled Initial Comment: Make a note in section 3.4.14 Python Library Reference (perhaps a footnote?) that higly recursive data stuctures cannot be pickled. Setting the stack limit helps a bit, but does not scale to large networks of data. eg. #!/usr/bin/env python import cPickle as pickle #import pickle import os #sys.setrecursionlimit(4000) N = 2048 print "building..." nest = [ [] for i in range(N) ] for i in range(N): for j in range(N): nest[i].append( nest[j] ) print "dumping..." file = open("nest.pkl","wb") try: pickle.dump( nest, file ) except RuntimeError, e: print e ---------------------------------------------------------------------- >Comment By: Reinhold Birkenfeld (birkenfeld) Date: 2005-12-27 00:28 Message: Logged In: YES user_id=1188172 Added a note to the docs in rev. 41822/41823. ---------------------------------------------------------------------- You can respond by visiting: https://sourceforge.net/tracker/?func=detail&atid=105470&aid=839075&group_id=5470 _______________________________________________ Python-bugs-list mailing list Unsubscribe: http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com