[Python-checkins] r71420 - python/branches/py3k/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Fri Apr 10 00:34:23 CEST 2009


Author: raymond.hettinger
Date: Fri Apr 10 00:34:23 2009
New Revision: 71420

Log:
Add note on using keyword arguments with OrderedDict.

Modified:
   python/branches/py3k/Doc/library/collections.rst

Modified: python/branches/py3k/Doc/library/collections.rst
==============================================================================
--- python/branches/py3k/Doc/library/collections.rst	(original)
+++ python/branches/py3k/Doc/library/collections.rst	Fri Apr 10 00:34:23 2009
@@ -852,6 +852,10 @@
 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/>`_


More information about the Python-checkins mailing list