Tighten the definition of a named tuple.

This commit is contained in:
Raymond Hettinger 2008-01-15 03:07:42 +00:00
parent c216df9288
commit d4c2e8659c

View file

@ -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``).