[Python-checkins] r72786 - python/trunk/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Tue May 19 19:43:59 CEST 2009


Author: raymond.hettinger
Date: Tue May 19 19:43:59 2009
New Revision: 72786
Log:
Note that ordered dictionaries work with reversed().
Modified:
 python/trunk/Doc/library/collections.rst
Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst	(original)
+++ python/trunk/Doc/library/collections.rst	Tue May 19 19:43:59 2009
@@ -868,6 +868,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

AltStyle によって変換されたページ (->オリジナル) /