summaryrefslogtreecommitdiffstats
path: root/Doc/library
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2017-01-08 06:05:12 (GMT)
committerRaymond Hettinger <python@rcn.com>2017-01-08 06:05:12 (GMT)
commitd15bb2624809b6a1ca35d1effcd57c1508795c4f (patch)
treed0303d787ab09b37c15026a3180b56241a5c086d /Doc/library
parent625fb648f7287b024f0cf762d04ce9224a6b7d31 (diff)
downloadcpython-d15bb2624809b6a1ca35d1effcd57c1508795c4f.zip
cpython-d15bb2624809b6a1ca35d1effcd57c1508795c4f.tar.gz
cpython-d15bb2624809b6a1ca35d1effcd57c1508795c4f.tar.bz2
Update OrderedDict docs to reflect acceptance of PEP 468
Diffstat (limited to 'Doc/library')
-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 9f3f5dc..8e2eb4d 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
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^