We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 5a81e54 commit b927de4Copy full SHA for b927de4
Objects/tupleobject.c
@@ -876,9 +876,8 @@ static PySequenceMethods tuple_as_sequence = {
876
static PyObjectIndexPair
877
tuple_iteritem(PyObject *obj, Py_ssize_t index)
878
{
879
- ;
880
if (index >= PyTuple_GET_SIZE(obj)) {
881
- return (PyObjectIndexPair) { .object = NULL, index = index };
+ return (PyObjectIndexPair) { .object = NULL, .index = index };
882
}
883
PyObject *result = PyTuple_GET_ITEM(obj, index);
884
Py_INCREF(result);
0 commit comments