From: Raymond Hettinger Date: Wed, 4 Feb 2009 19:25:17 +0000 (+0000) Subject: Clarify that named tuples do not have to subclass tuple. X-Git-Tag: v2.7a1~2124 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=aff711d32a887ac57d70f1df7c2408f358178d97;p=thirdparty%2FPython%2Fcpython.git Clarify that named tuples do not have to subclass tuple. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 0eb31117502a..808993e18e84 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -396,7 +396,7 @@ Glossary also :term:`immutable`. named tuple - Any tuple subclass whose indexable elements are also accessible using + Any tuple-like class whose indexable elements are also accessible using named attributes (for example, :func:`time.localtime` returns a tuple-like object where the *year* is accessible either with an index such as ``t[0]`` or with a named attribute like ``t.tm_year``).