mirror of
https://github.com/python/cpython.git
synced 2025-12-15 21:44:50 +00:00
Tighten the definition of a named tuple.
This commit is contained in:
parent
c216df9288
commit
d4c2e8659c
1 changed files with 1 additions and 1 deletions
|
|
@ -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``).
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue