[Python-checkins] r71419 - python/trunk/Doc/library/collections.rst
raymond.hettinger
python-checkins at python.org
Fri Apr 10 00:31:52 CEST 2009
Author: raymond.hettinger
Date: Fri Apr 10 00:31:51 2009
New Revision: 71419
Log:
Add note on using keyword arguments with OrderedDict.
Modified:
python/trunk/Doc/library/collections.rst
Modified: python/trunk/Doc/library/collections.rst
==============================================================================
--- python/trunk/Doc/library/collections.rst (original)
+++ python/trunk/Doc/library/collections.rst Fri Apr 10 00:31:51 2009
@@ -875,6 +875,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