[Python-checkins] r58381 - python/trunk/Doc/whatsnew/2.6.rst

andrew.kuchling python-checkins at python.org
Tue Oct 9 01:23:04 CEST 2007


Author: andrew.kuchling
Date: Tue Oct  9 01:23:03 2007
New Revision: 58381

Modified:
   python/trunk/Doc/whatsnew/2.6.rst
Log:
Eliminate camelcase function name

Modified: python/trunk/Doc/whatsnew/2.6.rst
==============================================================================
--- python/trunk/Doc/whatsnew/2.6.rst	(original)
+++ python/trunk/Doc/whatsnew/2.6.rst	Tue Oct  9 01:23:03 2007
@@ -515,11 +515,11 @@
 by module name. Consult the :file:`Misc/NEWS` file in the source tree for a more
 complete list of changes, or look through the CVS logs for all the details.
 
-* A new data type in the :mod:`collections` module: :class:`NamedTuple(typename,
+* A new data type in the :mod:`collections` module: :class:`named_tuple(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.NamedTuple('variable', 
+     >>> var_type = collections.named_tuple('variable', 
      ...             'id name type size')
      # Names are separated by spaces or commas.
      # 'id, name, type, size' would also work.


More information about the Python-checkins mailing list