pFad - Phone/Frame/Anonymizer/Declutterfier! Saves Data!


--- a PPN by Garber Painting Akron. With Image Size Reduction included!

URL: http://github.com/python/cpython/commit/adfffc7343ce7ebc88ec734a803d3247ba8927fb

aa60c69660fa.css" /> Fix the C function signature for _collections._tuplegetter.__reduce__… · python/cpython@adfffc7 · GitHub
Skip to content

Commit adfffc7

Browse files
Fix the C function signature for _collections._tuplegetter.__reduce__. (GH-12180)
Correctly fixes bpo-36197.
1 parent b35be4b commit adfffc7

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

Modules/_collectionsmodule.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2441,7 +2441,7 @@ tuplegetter_dealloc(_tuplegetterobject *self)
24412441
}
24422442

24432443
static PyObject*
2444-
tuplegetter_reduce(_tuplegetterobject *self)
2444+
tuplegetter_reduce(_tuplegetterobject *self, PyObject *Py_UNUSED(ignored))
24452445
{
24462446
return Py_BuildValue("(O(nO))", (PyObject*) Py_TYPE(self), self->index, self->doc);
24472447
}
@@ -2453,7 +2453,7 @@ static PyMemberDef tuplegetter_members[] = {
24532453
};
24542454

24552455
static PyMethodDef tuplegetter_methods[] = {
2456-
{"__reduce__", (PyCFunction)(void(*)(void))tuplegetter_reduce, METH_NOARGS, NULL},
2456+
{"__reduce__", (PyCFunction)tuplegetter_reduce, METH_NOARGS, NULL},
24572457
{NULL},
24582458
};
24592459

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad © 2024 Your Company Name. All rights reserved.





Check this box to remove all script contents from the fetched content.



Check this box to remove all images from the fetched content.


Check this box to remove all CSS styles from the fetched content.


Check this box to keep images inefficiently compressed and original size.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy