- changed milestone to 0.5.xx
OrderedDict does not work with pickle
Issue #1421
resolved
The OrderedDict class in utils.py does not properly work with pickling, which can be sixed by the following simple patch:
--- util.py.orig 2009-05-18 18:30:23.000000000 +0200
+++ util.py 2009-05-24 00:10:42.000000000 +0200
@@ -737,6 +737,8 @@
return iter(self.items())
def __setitem__(self, key, object):
+ if not hasattr(self, '_list'):
+ self._list = []
if key not in self:
self._list.append(key)
dict.__setitem__(self, key, object)
Comments (3)
-
repo owner -
repo owner - changed status to wontfix
-
repo owner - removed milestone
Removing milestone: 0.5.xx (automated comment)
- Log in to comment
do you have a test case? I am running various pickle tests and can't get them to fail.