From: Raymond Hettinger Date: Tue, 15 Jan 2008 03:07:42 +0000 (+0000) Subject: Tighten the definition of a named tuple. X-Git-Tag: v2.6a1~607 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=d4c2e8659c2ef5ae0ac9304fcf38d3008b249920;p=thirdparty%2FPython%2Fcpython.git Tighten the definition of a named tuple. --- diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 2fa0ef789a28..16215d21694d 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -340,7 +340,7 @@ Glossary also :term:`immutable`. named tuple - Any tuple-like class whose indexable fields are also accessible with + Any tuple subclass whose indexable fields are also accessible with 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``).