[issue2480] pickling of recursive sets of objects fails

Daniel Darabos report at bugs.python.org
Tue Mar 25 14:44:46 CET 2008


New submission from Daniel Darabos <darabos.daniel at gmail.com>:

In the attached demo I create a graph of 250 nodes, all of which are
connected to every other node, and this is represented by a set
attribute of the Node objects.

When I try to pickle this graph, it fails in various ways. In regular
pickle it is always a "maximum recursion depth exceeded" error. In
cPickle it is either a KeyError or a silent termination of the process.
(As tested on Windows XP 32 bits.) It depends on the size of the graph.
For smaller graphs (say 100 nodes) it works fine.

If connections are described using a dictionary or even a list, I get
the same errors.

----------
components: Library (Lib)
files: bugdemo.py
messages: 64481
nosy: cyhawk
severity: normal
status: open
title: pickling of recursive sets of objects fails
versions: Python 2.5
Added file: http://bugs.python.org/file9847/bugdemo.py

__________________________________
Tracker <report at bugs.python.org>
<http://bugs.python.org/issue2480>
__________________________________


More information about the Python-bugs-list mailing list