File tree 2 files changed +9
-3
lines changed 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -757,7 +757,7 @@ Glossary
757
757
Some named tuples are built-in types (such as the above examples).
758
758
Alternatively, a named tuple can be created from a regular class
759
759
definition that inherits from :class: `tuple ` and that defines named
760
- fields. Such as class can be written by hand or it can be created with
760
+ fields. Such a class can be written by hand or it can be created with
761
761
the factory function :func: `collections.namedtuple `. The latter
762
762
technique also adds some extra methods that may not be found in
763
763
hand-written or built-in named tuples.
Original file line number Diff line number Diff line change 1
- /* Implementation helper: a struct that looks like a tuple. See timemodule
2
- and posixmodule for example uses. */
1
+ /* Implementation helper: a struct that looks like a tuple.
2
+ See timemodule and posixmodule for example uses.
3
+
4
+ The structseq helper is considered an internal CPython implementation
5
+ detail. Docs for modules using structseqs should call them
6
+ "named tuples" (be sure to include a space between the two
7
+ words and add a link back to the term in Docs/glossary.rst).
8
+ */
3
9
4
10
#include "Python.h"
5
11
#include "pycore_tupleobject.h"
You can’t perform that action at this time.
0 commit comments