[issue19505] OrderedDict views don't implement __reversed__

ThiefMaster report at bugs.python.org
Tue Nov 5 17:17:58 CET 2013


New submission from ThiefMaster:

The view objects for `collections.OrderedDict` do not implement `__reversed__` so something like this fails:

    >>> from collections import OrderedDict
    >>> od = OrderedDict()
    >>> reversed(od.viewvalues())
    Traceback (most recent call last):
      File "<stdin>", line 1, in <module>
    TypeError: argument to reversed() must be a sequence

----------
components: Library (Lib)
messages: 202221
nosy: ThiefMaster
priority: normal
severity: normal
status: open
title: OrderedDict views don't implement __reversed__
versions: Python 2.7, Python 3.1, Python 3.2

_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue19505>
_______________________________________


More information about the Python-bugs-list mailing list