From aff711d32a887ac57d70f1df7c2408f358178d97 Mon Sep 17 00:00:00 2001 From: Raymond Hettinger Date: Wed, 4 Feb 2009 19:25:17 +0000 Subject: [PATCH] Clarify that named tuples do not have to subclass tuple. --- Doc/glossary.rst | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Doc/glossary.rst b/Doc/glossary.rst index 0eb3111750..808993e18e 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``). -- 2.50.1