The values returned by OrderedDict.values() is an instance of a class
that cannot be copied in py3k (a list in python 2). For this reason, the
following message appears :
TypeError: can't pickle odict_values objects
The solution is to first copy the OrderedDict and then get the
iterator on his values.
The values returned by
OrderedDict.values()
is an instance of a class that cannot be copied in py3k (a list in python 2). For this reason, the following message appears :The solution is to first copy the
OrderedDict
and then get the iterator on his values.