This issue tracker has been migrated to GitHub, and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author eric.snow
Recipients ThiefMaster, eric.snow, rhettinger, serhiy.storchaka, stutzbach
Date 2013-11-05.23:41:08
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <>
The view objects aren't sequences.  od.items() and od.keys() implement Set.  od.values() doesn't even do that much, only implementing __len__(), __iter__(), and __contains__().

The glossary implies that you should use "reversed(list(view))". [1]  More information on mapping views is located in the docs for collections.ABC and for dict. [2][3]  The source for the Mapping views is also helpful. [4]

Keep in mind that OrderedDict is not a sequence-like dict.  It is essentially just a dict with a well-defined iteration order (by insertion order). [5]  Just like its views, it should not used as a sequence.

Date User Action Args
2013-11-05 23:41:08eric.snowsetrecipients: + eric.snow, rhettinger, stutzbach, serhiy.storchaka, ThiefMaster
2013-11-05 23:41:08eric.snowsetmessageid: <>
2013-11-05 23:41:08eric.snowlinkissue19505 messages
2013-11-05 23:41:08eric.snowcreate