summaryrefslogtreecommitdiffstats
path: root/Doc/library/collections.rst
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-04-09 22:34:23 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-04-09 22:34:23 (GMT)
commit3618078cd67cb9cc4e4cdedd22b7a628bbb7fc6b (patch)
tree0c38dcda25d035d03e9ae73d3f1628a2b854fdd3 /Doc/library/collections.rst
parentdc6da8abda6e9faeb34b53520563eed21d42e7e5 (diff)
downloadcpython-3618078cd67cb9cc4e4cdedd22b7a628bbb7fc6b.zip
cpython-3618078cd67cb9cc4e4cdedd22b7a628bbb7fc6b.tar.gz
cpython-3618078cd67cb9cc4e4cdedd22b7a628bbb7fc6b.tar.bz2
Add note on using keyword arguments with OrderedDict.
Diffstat (limited to 'Doc/library/collections.rst')
-rw-r--r--Doc/library/collections.rst4
1 files changed, 4 insertions, 0 deletions
diff --git a/Doc/library/collections.rst b/Doc/library/collections.rst
index 2e6a537..e27d89a 100644
--- a/Doc/library/collections.rst
+++ b/Doc/library/collections.rst
@@ -852,6 +852,10 @@ Equality tests between :class:`OrderedDict` objects and other
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.
+
.. seealso::
`Equivalent OrderedDict recipe <http://code.activestate.com/recipes/576693/>`_