Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 82f614b

Browse files
committed
glossary entry for struct sequence
1 parent a154b5c commit 82f614b

1 file changed

Lines changed: 8 additions & 0 deletions

File tree

Doc/glossary.rst

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -580,6 +580,14 @@ Glossary
580580
an :term:`expression` or a one of several constructs with a keyword, such
581581
as :keyword:`if`, :keyword:`while` or :keyword:`for`.
582582

583+
struct sequence
584+
A tuple with named elements. Struct sequences expose an interface similiar
585+
to :term:`named tuple` in that elements can either be accessed either by
586+
index or as an attribute. However, they do not have any of the named tuple
587+
methods like :meth:`~collections.somenamedtuple._make` or
588+
:meth:`~collections.somenamedtuple._asdict`. Examples of struct sequences
589+
include :data:`sys.float_info` and the return value of :func:`os.stat`.
590+
583591
triple-quoted string
584592
A string which is bound by three instances of either a quotation mark
585593
(") or an apostrophe ('). While they don't provide any functionality

0 commit comments

Comments
 (0)