summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRaymond Hettinger <python@rcn.com>2009-02-04 19:25:17 (GMT)
committerRaymond Hettinger <python@rcn.com>2009-02-04 19:25:17 (GMT)
commitaff711d32a887ac57d70f1df7c2408f358178d97 (patch)
treeb7eae1ed9b032a5135805b6e2866ea54f74500fa
parent939a3cc5a2aa849d4876a5f42ffb2629d628f9bf (diff)
downloadcpython-aff711d32a887ac57d70f1df7c2408f358178d97.zip
cpython-aff711d32a887ac57d70f1df7c2408f358178d97.tar.gz
cpython-aff711d32a887ac57d70f1df7c2408f358178d97.tar.bz2
Clarify that named tuples do not have to subclass tuple.
-rw-r--r--Doc/glossary.rst2
1 files changed, 1 insertions, 1 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index 0eb3111..808993e 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``).