diff options
author | Georg Brandl <georg@python.org> | 2005-12-26 23:27:50 (GMT) |
---|---|---|
committer | Georg Brandl <georg@python.org> | 2005-12-26 23:27:50 (GMT) |
commit | 6638b863be3d78a1e5e1fbf75790c998d337d5ff (patch) | |
tree | 31f8d265b09a56de26f9d541dfbf29ae4484d0b7 /Doc | |
parent | 26c221fe738164de2f05c44806306ce82a65e5d8 (diff) | |
download | cpython-6638b863be3d78a1e5e1fbf75790c998d337d5ff.zip cpython-6638b863be3d78a1e5e1fbf75790c998d337d5ff.tar.gz cpython-6638b863be3d78a1e5e1fbf75790c998d337d5ff.tar.bz2 |
Bug #839075 (backport): document that highly recursive data cannot be pickled
Diffstat (limited to 'Doc')
-rw-r--r-- | Doc/lib/libpickle.tex | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/lib/libpickle.tex b/Doc/lib/libpickle.tex index f5c23f0..74d289e 100644 --- a/Doc/lib/libpickle.tex +++ b/Doc/lib/libpickle.tex @@ -395,6 +395,10 @@ section~\ref{pickle-protocol} for details) 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 |