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
adfffc73
Commit
adfffc73
authored
Mar 05, 2019
by
Serhiy Storchaka
Committed by
GitHub
Mar 05, 2019
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)
Correctly fixes bpo-36197.
parent
b35be4b3
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
+2
-2
Modules/_collectionsmodule.c
Modules/_collectionsmodule.c
+2
-2
No files found.
Modules/_collectionsmodule.c
View file @
adfffc73
...
...
@@ -2441,7 +2441,7 @@ tuplegetter_dealloc(_tuplegetterobject *self)
}
static
PyObject
*
tuplegetter_reduce
(
_tuplegetterobject
*
self
)
tuplegetter_reduce
(
_tuplegetterobject
*
self
,
PyObject
*
Py_UNUSED
(
ignored
)
)
{
return
Py_BuildValue
(
"(O(nO))"
,
(
PyObject
*
)
Py_TYPE
(
self
),
self
->
index
,
self
->
doc
);
}
...
...
@@ -2453,7 +2453,7 @@ static PyMemberDef tuplegetter_members[] = {
};
static
PyMethodDef
tuplegetter_methods
[]
=
{
{
"__reduce__"
,
(
PyCFunction
)
(
void
(
*
)(
void
))
tuplegetter_reduce
,
METH_NOARGS
,
NULL
},
{
"__reduce__"
,
(
PyCFunction
)
tuplegetter_reduce
,
METH_NOARGS
,
NULL
},
{
NULL
},
};
...
...
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