summaryrefslogtreecommitdiffstats
path: root/Doc/glossary.rst
diff options
context:
space:
mode:
authorBenjamin Peterson <benjamin@python.org>2011-04-20 23:27:32 (GMT)
committerBenjamin Peterson <benjamin@python.org>2011-04-20 23:27:32 (GMT)
commit82f614b20a71455e348c3787b4c44991cebb3525 (patch)
tree3d57784220e17618abaa25b12189bd1392ab4aee /Doc/glossary.rst
parenta154b5cea43996f69e800e59a8aa0e75095db7f4 (diff)
downloadcpython-82f614b20a71455e348c3787b4c44991cebb3525.zip
cpython-82f614b20a71455e348c3787b4c44991cebb3525.tar.gz
cpython-82f614b20a71455e348c3787b4c44991cebb3525.tar.bz2
glossary entry for struct sequence
Diffstat (limited to 'Doc/glossary.rst')
-rw-r--r--Doc/glossary.rst8
1 files changed, 8 insertions, 0 deletions
diff --git a/Doc/glossary.rst b/Doc/glossary.rst
index ec8af62..4e425c3 100644
--- a/Doc/glossary.rst
+++ b/Doc/glossary.rst
@@ -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