mirror of
https://github.com/python/cpython.git
synced 2025-08-04 17:08:35 +00:00
gh-111178: Fix function signatures for test_iter (#131456)
This commit is contained in:
parent
8ad4646c67
commit
f5e4c2955b
4 changed files with 21 additions and 12 deletions
|
@ -210,8 +210,9 @@ calliter_dealloc(PyObject *op)
|
|||
}
|
||||
|
||||
static int
|
||||
calliter_traverse(calliterobject *it, visitproc visit, void *arg)
|
||||
calliter_traverse(PyObject *op, visitproc visit, void *arg)
|
||||
{
|
||||
calliterobject *it = (calliterobject*)op;
|
||||
Py_VISIT(it->it_callable);
|
||||
Py_VISIT(it->it_sentinel);
|
||||
return 0;
|
||||
|
@ -294,7 +295,7 @@ PyTypeObject PyCallIter_Type = {
|
|||
0, /* tp_as_buffer */
|
||||
Py_TPFLAGS_DEFAULT | Py_TPFLAGS_HAVE_GC, /* tp_flags */
|
||||
0, /* tp_doc */
|
||||
(traverseproc)calliter_traverse, /* tp_traverse */
|
||||
calliter_traverse, /* tp_traverse */
|
||||
0, /* tp_clear */
|
||||
0, /* tp_richcompare */
|
||||
0, /* tp_weaklistoffset */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue