Thanks to visit codestin.com Credit goes to github.com
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 465c802 commit 651453aCopy full SHA for 651453a
1 file changed
Doc/library/collections.rst
@@ -755,7 +755,8 @@ function:
755
>>> getattr(p, 'x')
756
11
757
758
-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
759
+(as described in :ref:`tut-unpacking-arguments`):
760
761
>>> d = {'x': 11, 'y': 22}
762
>>> Point(**d)
@@ -803,10 +804,10 @@ and more efficient to use a simple class declaration:
803
804
>>> class Status:
805
... open, pending, closed = range(3)
806
-.. rubric:: Footnotes
807
+.. seealso::
808
-.. [#] For information on the double-star-operator see
809
- :ref:`tut-unpacking-arguments` and :ref:`calls`.
+ `Named tuple recipe <http://code.activestate.com/recipes/500261/>`_
810
+ adapted for Python 2.4.
811
812
813
0 commit comments