]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Clean-up named tuple docs.
authorRaymond Hettinger <python@rcn.com>
Wed, 11 Feb 2009 00:12:07 +0000 (00:12 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 11 Feb 2009 00:12:07 +0000 (00:12 +0000)
Doc/library/collections.rst

index caf3e6dcfadaf0455c10d7db6f96cbd9fa0f3985..a860a53a7197395a9abebb87c285093ed9cb3296 100644 (file)
@@ -637,7 +637,8 @@ function:
     >>> 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)
@@ -684,7 +685,7 @@ and more efficient to use a simple class declaration:
     >>> 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.