[Python-checkins] r69511 - python/branches/release30-maint/Doc/library/collections.rst
raymond.hettinger
python-checkins at python.org
Wed Feb 11 01:16:12 CET 2009
Author: raymond.hettinger
Date: Wed Feb 11 01:16:12 2009
New Revision: 69511
Log:
Clean-up named tuple docs.
Modified:
python/branches/release30-maint/Doc/library/collections.rst
Modified: python/branches/release30-maint/Doc/library/collections.rst
==============================================================================
--- python/branches/release30-maint/Doc/library/collections.rst (original)
+++ python/branches/release30-maint/Doc/library/collections.rst Wed Feb 11 01:16:12 2009
@@ -614,7 +614,8 @@
>>> getattr(p, 'x')
11
-To convert a dictionary to a named tuple, use the double-star-operator [#]_:
+To convert a dictionary to a named tuple, use the double-star-operator
+(as described in :ref:`tut-unpacking-arguments`):
>>> d = {'x': 11, 'y': 22}
>>> Point(**d)
@@ -662,10 +663,10 @@
>>> class Status:
... open, pending, closed = range(3)
-.. rubric:: Footnotes
+.. seealso::
-.. [#] For information on the double-star-operator see
- :ref:`tut-unpacking-arguments` and :ref:`calls`.
+ `Named tuple recipe <http://code.activestate.com/recipes/500261/>`_
+ adapted for Python 2.4.
More information about the Python-checkins
mailing list