[New-bugs-announce] [issue10701] Error pickling a dict

Alexander Belopolsky report at bugs.python.org
Tue Dec 14 15:53:56 CET 2010

New submission from Alexander Belopolsky <belopolsky at users.sourceforge.net>:

The work-around that I proposed for issue10700 does not work with Python 2.x:

$ python2.7 dict-graph.py
Vertex 0 -> 2, 1
Vertex 1 -> 
Vertex 2 -> 
Traceback (most recent call last):
  File "dict-graph.py", line 74, in <module>
    p = pickle.dumps(g)
File ".../Lib/pickle.py", line 661, in _batch_setitems
    for k, v in items:
RuntimeError: dictionary changed size during iteration

files: dict-graph.py
messages: 123948
nosy: Leo.Na, belopolsky
priority: normal
severity: normal
stage: needs patch
status: open
title: Error pickling a dict
type: behavior
versions: Python 2.7
Added file: http://bugs.python.org/file20038/dict-graph.py

Python tracker <report at bugs.python.org>

More information about the New-bugs-announce mailing list