https://github.com/python/cpython/commit/0917338c78ebb16bee56c470f4c9eb92e3042184 commit: 0917338c78ebb16bee56c470f4c9eb92e3042184 branch: 3.11 author: Miss Islington (bot) <[email protected]> committer: JelleZijlstra <[email protected]> date: 2024-03-12T22:54:18Z summary:
[3.11] Add `typing.NamedTuple` in glossary section for named tuples (GH-108327) (#116690) (cherry picked from commit 149f7f7ae28944579792d22607532006977177c9) Co-authored-by: Tushar Sadhwani <[email protected]> files: M Doc/glossary.rst diff --git a/Doc/glossary.rst b/Doc/glossary.rst index f520df5de049b3..3943bb6a13213d 100644 --- a/Doc/glossary.rst +++ b/Doc/glossary.rst @@ -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 _______________________________________________ Python-checkins mailing list -- [email protected] To unsubscribe send an email to [email protected] https://mail.python.org/mailman3/lists/python-checkins.python.org/ Member address: [email protected]
