Skip to content

Commit

Permalink
[3.11] Add typing.NamedTuple in glossary section for named tuples (p…
Browse files Browse the repository at this point in the history
…ythonGH-108327) (python#116690)

(cherry picked from commit 149f7f7)

Co-authored-by: Tushar Sadhwani <tushar.sadhwani000@gmail.com>
  • Loading branch information
miss-islington and tusharsadhwani committed Mar 12, 2024
1 parent f3a2b62 commit 0917338
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions Doc/glossary.rst
Expand Up @@ -840,10 +840,11 @@ Glossary
Some named tuples are built-in types (such as the above examples).
Alternatively, a named tuple can be created from a regular class
definition that inherits from :class:`tuple` and that defines named
fields. Such a class can be written by hand or it can be created with
the factory function :func:`collections.namedtuple`. The latter
technique also adds some extra methods that may not be found in
hand-written or built-in named tuples.
fields. Such a class can be written by hand, or it can be created by
inheriting :class:`typing.NamedTuple`, or with the factory function
:func:`collections.namedtuple`. The latter techniques also add some
extra methods that may not be found in hand-written or built-in named
tuples.

namespace
The place where a variable is stored. Namespaces are implemented as
Expand Down

0 comments on commit 0917338

Please sign in to comment.