[issue25410] Clean up and fix OrderedDict
Serhiy Storchaka
report at bugs.python.org
Sun Oct 18 04:24:04 EDT 2015
Serhiy Storchaka added the comment:
Here is a patch that makes both implementations to use type(self) instead of self.__class__ in __repr__(), __reduce__() and copy().
There is a difference between current implementations. Python implementation uses self.__class__ in copy(), C implementation uses type(self).
----------
Added file: http://bugs.python.org/file40806/odict_type.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue25410>
_______________________________________
More information about the Python-bugs-list
mailing list