[Python-checkins] commit of r41823 - python/branches/release24-maint/Doc/lib/libpickle.tex

reinhold.birkenfeld python-checkins at python.org
Tue Dec 27 00:27:53 CET 2005


Author: reinhold.birkenfeld
Date: Tue Dec 27 00:27:50 2005
New Revision: 41823
Modified:
 python/branches/release24-maint/Doc/lib/libpickle.tex
Log:
Bug #839075 (backport): document that highly recursive data cannot be pickled
Modified: python/branches/release24-maint/Doc/lib/libpickle.tex
==============================================================================
--- python/branches/release24-maint/Doc/lib/libpickle.tex	(original)
+++ python/branches/release24-maint/Doc/lib/libpickle.tex	Tue Dec 27 00:27:50 2005
@@ -395,6 +395,10 @@
 Attempts to pickle unpicklable objects will raise the
 \exception{PicklingError} exception; when this happens, an unspecified
 number of bytes may have already been written to the underlying file.
+Trying to pickle a highly recursive data structure may exceed the
+maximum recursion depth, a \exception{RuntimeError} will be raised
+in this case. You can carefully raise this limit with 
+\function{sys.setrecursionlimit()}.
 
 Note that functions (built-in and user-defined) are pickled by ``fully
 qualified'' name reference, not by value. This means that only the


More information about the Python-checkins mailing list

AltStyle によって変換されたページ (->オリジナル) /