]> granicus.if.org Git - python/commitdiff
glossary entry for struct sequence
authorBenjamin Peterson <benjamin@python.org>
Wed, 20 Apr 2011 23:27:32 +0000 (18:27 -0500)
committerBenjamin Peterson <benjamin@python.org>
Wed, 20 Apr 2011 23:27:32 +0000 (18:27 -0500)
Doc/glossary.rst

index ec8af625535e51d7240d8ec62a68a9ab1a5f550a..4e425c35b79a30e5156628f0608df15efd007ea4 100644 (file)
@@ -580,6 +580,14 @@ Glossary
       an :term:`expression` or a one of several constructs with a keyword, such
       as :keyword:`if`, :keyword:`while` or :keyword:`for`.
 
+   struct sequence
+      A tuple with named elements. Struct sequences expose an interface similiar
+      to :term:`named tuple` in that elements can either be accessed either by
+      index or as an attribute. However, they do not have any of the named tuple
+      methods like :meth:`~collections.somenamedtuple._make` or
+      :meth:`~collections.somenamedtuple._asdict`. Examples of struct sequences
+      include :data:`sys.float_info` and the return value of :func:`os.stat`.
+
    triple-quoted string
       A string which is bound by three instances of either a quotation mark
       (") or an apostrophe (').  While they don't provide any functionality