]> granicus.if.org Git - python/commitdiff
Clean-up named tuple docs.
authorRaymond Hettinger <python@rcn.com>
Wed, 11 Feb 2009 00:20:02 +0000 (00:20 +0000)
committerRaymond Hettinger <python@rcn.com>
Wed, 11 Feb 2009 00:20:02 +0000 (00:20 +0000)
Doc/library/collections.rst

index 9ff8a27020e6ddad023f613f56b5de37ab6f389f..a179d0f3e0e296fc5b8c8a4598edab4adf7d89d3 100644 (file)
@@ -755,7 +755,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)
@@ -803,10 +804,10 @@ 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.