[Python-checkins] r69510 - python/branches/release26-maint/Doc/library/collections.rst

raymond.hettinger python-checkins at python.org
Wed Feb 11 01:12:08 CET 2009


Author: raymond.hettinger
Date: Wed Feb 11 01:12:07 2009
New Revision: 69510
Log:
Clean-up named tuple docs.
Modified:
 python/branches/release26-maint/Doc/library/collections.rst
Modified: python/branches/release26-maint/Doc/library/collections.rst
==============================================================================
--- python/branches/release26-maint/Doc/library/collections.rst	(original)
+++ python/branches/release26-maint/Doc/library/collections.rst	Wed Feb 11 01:12:07 2009
@@ -637,7 +637,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)
@@ -684,7 +685,7 @@
 >>> 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

AltStyle によって変換されたページ (->オリジナル) /