summaryrefslogtreecommitdiffstats
path: root/Doc/whatsnew
diff options
context:
space:
mode:
authorAndrew M. Kuchling <amk@amk.ca>2007-10-23 20:55:47 (GMT)
committerAndrew M. Kuchling <amk@amk.ca>2007-10-23 20:55:47 (GMT)
commit6d57c827a7e9060033e23a324a8c9b65c74ed428 (patch)
treecd6d9c5db6ca12d33008b8b12ce25e41afcfbc9c /Doc/whatsnew
parent01a0957f061cd2d4d5b849ad1ff6afa3016de26b (diff)
downloadcpython-6d57c827a7e9060033e23a324a8c9b65c74ed428.zip
cpython-6d57c827a7e9060033e23a324a8c9b65c74ed428.tar.gz
cpython-6d57c827a7e9060033e23a324a8c9b65c74ed428.tar.bz2
Update name
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r--Doc/whatsnew/2.6.rst4
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst
index 317f824..8314f4c 100644
--- a/Doc/whatsnew/2.6.rst
+++ b/Doc/whatsnew/2.6.rst
@@ -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.