[issue19505] OrderedDict views don't implement __reversed__
Serhiy Storchaka
report at bugs.python.org
Wed Nov 6 22:29:54 CET 2013
Serhiy Storchaka added the comment:
We can't add __reversed__() to the Set or MappingView protocols without breaking third party code, but we can add it to concrete implementations of mapping views. In particular for views of OrderedDict which itself already have __reversed__().
Here is a patch which makes OrderedDict's views reversible.
----------
keywords: +patch
stage: -> patch review
Added file: http://bugs.python.org/file32518/OrderedDict_reversed_views.patch
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19505>
_______________________________________
More information about the Python-bugs-list
mailing list