File tree Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Expand file tree Collapse file tree 2 files changed +9
-3
lines changed Original file line number Diff line number Diff line change @@ -753,7 +753,7 @@ Glossary
753
753
Some named tuples are built-in types (such as the above examples).
754
754
Alternatively, a named tuple can be created from a regular class
755
755
definition that inherits from :class: `tuple ` and that defines named
756
- fields. Such as class can be written by hand or it can be created with
756
+ fields. Such a class can be written by hand or it can be created with
757
757
the factory function :func: `collections.namedtuple `. The latter
758
758
technique also adds some extra methods that may not be found in
759
759
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 "structmember.h"
You can’t perform that action at this time.
0 commit comments