mirror of
https://github.com/python/cpython.git
synced 2025-12-04 08:34:25 +00:00
Squashed new compiler wngs about trying to compare pointers to
functions with different signatures.
This commit is contained in:
parent
da4ec5a7bc
commit
2af713c2f7
2 changed files with 2 additions and 2 deletions
|
|
@ -2375,7 +2375,7 @@ list_iter(PyObject *seq)
|
||||||
PyErr_BadInternalCall();
|
PyErr_BadInternalCall();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (seq->ob_type->tp_as_sequence->sq_item != list_item)
|
if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)list_item)
|
||||||
return PySeqIter_New(seq);
|
return PySeqIter_New(seq);
|
||||||
it = PyObject_GC_New(listiterobject, &PyListIter_Type);
|
it = PyObject_GC_New(listiterobject, &PyListIter_Type);
|
||||||
if (it == NULL)
|
if (it == NULL)
|
||||||
|
|
|
||||||
|
|
@ -753,7 +753,7 @@ tuple_iter(PyObject *seq)
|
||||||
PyErr_BadInternalCall();
|
PyErr_BadInternalCall();
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
if (seq->ob_type->tp_as_sequence->sq_item != tupleitem)
|
if (seq->ob_type->tp_as_sequence->sq_item != (intargfunc)tupleitem)
|
||||||
return PySeqIter_New(seq);
|
return PySeqIter_New(seq);
|
||||||
it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);
|
it = PyObject_GC_New(tupleiterobject, &PyTupleIter_Type);
|
||||||
if (it == NULL)
|
if (it == NULL)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue