Clarify that named tuples do not have to subclass tuple.
This commit is contained in:
parent
939a3cc5a2
commit
aff711d32a
|
@ -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``).
|
||||
|
|
Loading…
Reference in New Issue