Commit d90d1c1b authored by Georg Brandl's avatar Georg Brandl

Bug #839075: document that highly recursive data cannot be pickled

parent c47f1c19
...@@ -372,6 +372,10 @@ section~\ref{pickle-protocol} for details) ...@@ -372,6 +372,10 @@ section~\ref{pickle-protocol} for details)
Attempts to pickle unpicklable objects will raise the Attempts to pickle unpicklable objects will raise the
\exception{PicklingError} exception; when this happens, an unspecified \exception{PicklingError} exception; when this happens, an unspecified
number of bytes may have already been written to the underlying file. 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 Note that functions (built-in and user-defined) are pickled by ``fully
qualified'' name reference, not by value. This means that only the qualified'' name reference, not by value. This means that only the
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment