]> granicus.if.org Git - python/commitdiff
Update name
authorAndrew M. Kuchling <amk@amk.ca>
Tue, 23 Oct 2007 20:55:47 +0000 (20:55 +0000)
committerAndrew M. Kuchling <amk@amk.ca>
Tue, 23 Oct 2007 20:55:47 +0000 (20:55 +0000)
Doc/whatsnew/2.6.rst

index 317f8243466108be0a29284626c37a79173f9717..8314f4c06022aeae558aaf331e6f06fed0db1be9 100644 (file)
@@ -520,11 +520,11 @@ complete list of changes, or look through the CVS logs for all the details.
 
   .. % Patch 1551443
 
-* A new data type in the :mod:`collections` module: :class:`named_tuple(typename,
+* A new data type in the :mod:`collections` module: :class:`namedtuple(typename,
   fieldnames)` is a factory function that creates subclasses of the standard tuple
   whose fields are accessible by name as well as index.  For example::
 
-     >>> var_type = collections.named_tuple('variable', 
+     >>> var_type = collections.namedtuple('variable', 
      ...             'id name type size')
      # Names are separated by spaces or commas.
      # 'id, name, type, size' would also work.