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 2cac26b commit fed7db7Copy full SHA for fed7db7
Modules/itertoolsmodule.c
@@ -544,6 +544,7 @@ groupby_next(PyObject *op)
544
else if (gbo->tgtkey == NULL)
545
break;
546
else {
547
+ int rcmp;
548
549
/* A user-defined __eq__ can re-enter groupby and advance the iterator,
550
mutating gbo->tgtkey / gbo->currkey while we are comparing them.
@@ -555,7 +556,7 @@ groupby_next(PyObject *op)
555
556
Py_INCREF(tgtkey);
557
Py_INCREF(currkey);
558
- int rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
559
+ rcmp = PyObject_RichCompareBool(tgtkey, currkey, Py_EQ);
560
561
Py_DECREF(tgtkey);
562
Py_DECREF(currkey);
0 commit comments