New submission from Alexander Belopolsky <belopol...@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 <rep...@bugs.python.org>
<http://bugs.python.org/issue10701>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
http://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to