From d4c2e8659c2ef5ae0ac9304fcf38d3008b249920 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Tue, 15 Jan 2008 03:07:42 +0000 Subject: [PATCH] Tighten the definition of a named tuple. --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 2fa0ef789a..16215d2169 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``). -- 2.50.1