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 <rep...@bugs.python.org>
<http://bugs.python.org/issue19505>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to