Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
C
cpython
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
Kirill Smelkov
cpython
Commits
4210ad5e
Commit
4210ad5e
authored
Sep 12, 2019
by
Raymond Hettinger
Committed by
GitHub
Sep 12, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
bpo-38096: Complete the "structseq" and "named tuple" cleanup (GH-16010)
parent
c6734ee7
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
+9
-3
Doc/glossary.rst
Doc/glossary.rst
+1
-1
Objects/structseq.c
Objects/structseq.c
+8
-2
No files found.
Doc/glossary.rst
View file @
4210ad5e
...
@@ -757,7 +757,7 @@ Glossary
...
@@ -757,7 +757,7 @@ Glossary
Some
named
tuples
are
built
-
in
types
(
such
as
the
above
examples
).
Some
named
tuples
are
built
-
in
types
(
such
as
the
above
examples
).
Alternatively
,
a
named
tuple
can
be
created
from
a
regular
class
Alternatively
,
a
named
tuple
can
be
created
from
a
regular
class
definition
that
inherits
from
:
class
:`
tuple
`
and
that
defines
named
definition
that
inherits
from
:
class
:`
tuple
`
and
that
defines
named
fields
.
Such
a
s
class
can
be
written
by
hand
or
it
can
be
created
with
fields
.
Such
a
class
can
be
written
by
hand
or
it
can
be
created
with
the
factory
function
:
func
:`
collections
.
namedtuple
`.
The
latter
the
factory
function
:
func
:`
collections
.
namedtuple
`.
The
latter
technique
also
adds
some
extra
methods
that
may
not
be
found
in
technique
also
adds
some
extra
methods
that
may
not
be
found
in
hand
-
written
or
built
-
in
named
tuples
.
hand
-
written
or
built
-
in
named
tuples
.
...
...
Objects/structseq.c
View file @
4210ad5e
/* Implementation helper: a struct that looks like a tuple. See timemodule
/* Implementation helper: a struct that looks like a tuple.
and posixmodule for example uses. */
See timemodule and posixmodule for example uses.
The structseq helper is considered an internal CPython implementation
detail. Docs for modules using structseqs should call them
"named tuples" (be sure to include a space between the two
words and add a link back to the term in Docs/glossary.rst).
*/
#include "Python.h"
#include "Python.h"
#include "pycore_tupleobject.h"
#include "pycore_tupleobject.h"
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment