[Python-checkins] r72785 - python/branches/py3k/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Tue May 19 19:40:07 CEST 2009


Author: raymond.hettinger
Date: Tue May 19 19:40:07 2009
New Revision: 72785

Log:
Note that ordered dictionaries work with reversed().

Modified:
   python/branches/py3k/Doc/library/collections.rst

Modified: python/branches/py3k/Doc/library/collections.rst
==============================================================================
--- python/branches/py3k/Doc/library/collections.rst	(original)
+++ python/branches/py3k/Doc/library/collections.rst	Tue May 19 19:40:07 2009
@@ -844,6 +844,9 @@
    a (key, value) pair.  The pairs are returned in LIFO order if *last* is
    true or FIFO order if false.
 
+In addition to the usual mapping methods, ordered dictionaries also support
+reverse iteration using :func:`reversed`.
+
 Equality tests between :class:`OrderedDict` objects are order-sensitive
 and are implemented as ``list(od1.items())==list(od2.items())``.
 Equality tests between :class:`OrderedDict` objects and other


More information about the Python-checkins mailing list