[issue10701] Error pickling a dict
Alexandre Vassalotti
report at bugs.python.org
Sun Apr 14 07:03:39 CEST 2013
Alexandre Vassalotti added the comment:
The mutating __getstate__ is very likely the problem here. I've attached a small test case which shows the described behavior.
We could fix this by always making a copy of any mutable container we want to iterate over to save its items. Performance-wise this solution is not very attractive. We are better off documenting this behavior as a limitation of __getstate__.
----------
Added file: http://bugs.python.org/file29843/issue10701.py
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue10701>
_______________________________________
More information about the Python-bugs-list
mailing list