summaryrefslogtreecommitdiff
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-01-07 22:05:12 -0800
committerRaymond Hettinger <python@rcn.com>2017-01-07 22:05:12 -0800
commit9ef52e04db9638a37b569dd1a7a0e496907947d8 (patch)
treeb645e5204917a4636df9be168c4f3b7325236cb5 /Doc/library/collections.rst
parentcb8f22240a150d4f20c5816eb4bd68a1e2ac0bf3 (diff)
downloadcpython-9ef52e04db9638a37b569dd1a7a0e496907947d8.tar.gz
Update OrderedDict docs to reflect acceptance of PEP 468
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst9
1 files changed, 5 insertions, 4 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 9f3f5dc8ff..8e2eb4d9b0 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -1029,14 +1029,15 @@ Equality tests between :class:`OrderedDict` objects and other
dictionaries. This allows :class:`OrderedDict` objects to be substituted
anywhere a regular dictionary is used.
-The :class:`OrderedDict` constructor and :meth:`update` method both accept
-keyword arguments, but their order is lost because Python's function call
-semantics pass in keyword arguments using a regular unordered dictionary.
-
.. versionchanged:: 3.5
The items, keys, and values :term:`views <dictionary view>`
of :class:`OrderedDict` now support reverse iteration using :func:`reversed`.
+.. versionchanged:: 3.6
+ With the acceptance of :pep:`468`, order is retained for keyword arguments
+ passed to the :class:`OrderedDict` constructor and its :meth:`update`
+ method.
+
:class:`OrderedDict` Examples and Recipes
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^