summaryrefslogtreecommitdiffstats
path: root/Doc
diff options
context:
space:
mode:
Diffstat (limited to 'Doc')
-rw-r--r--Doc/library/collections.rst3
1 files changed, 3 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 9dcf302..3f57348 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -844,6 +844,9 @@ the items are returned in the order their keys were first added.
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