diff options
author | Andrew M. Kuchling <amk@amk.ca> | 2007-10-08 23:23:03 (GMT) |
---|---|---|
committer | Andrew M. Kuchling <amk@amk.ca> | 2007-10-08 23:23:03 (GMT) |
commit | 4b3074c795c52e5d2327ddf38f71f4bdf38991bd (patch) | |
tree | f6c6d2297f581560e0a14610f5102073ea6e3c9c /Doc/whatsnew | |
parent | a48a29947aeb10c62f1780f66b69548e358a5734 (diff) | |
download | cpython-4b3074c795c52e5d2327ddf38f71f4bdf38991bd.zip cpython-4b3074c795c52e5d2327ddf38f71f4bdf38991bd.tar.gz cpython-4b3074c795c52e5d2327ddf38f71f4bdf38991bd.tar.bz2 |
Eliminate camelcase function name
Diffstat (limited to 'Doc/whatsnew')
-rw-r--r-- | Doc/whatsnew/2.6.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Doc/whatsnew/2.6.rst b/Doc/whatsnew/2.6.rst index 717500a..a5d681c 100644 --- a/Doc/whatsnew/2.6.rst +++ b/Doc/whatsnew/2.6.rst @@ -515,11 +515,11 @@ fixes. Here's a partial list of the most notable changes, sorted alphabetically 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. |