Skip to content
Prev Previous commit
Next Next commit
nit
  • Loading branch information
corona10 committed Feb 9, 2024
commit 79989dbf9f1dfce9c774ce0b462073a6e7e731f1
2 changes: 1 addition & 1 deletion Python/bytecodes.c
Original file line number Diff line number Diff line change
Expand Up @@ -2615,13 +2615,13 @@ dummy_func(
STAT_INC(FOR_ITER, hit);
PyListObject *seq = it->it_seq;
if (seq == NULL || it->it_index >= PyList_GET_SIZE(seq)) {
Comment thread
corona10 marked this conversation as resolved.
Outdated
it->it_index = -1;
#ifndef Py_GIL_DISABLED
if (seq != NULL) {
it->it_seq = NULL;
Py_DECREF(seq);
}
#endif
it->it_index = -1;
Comment thread
corona10 marked this conversation as resolved.
Outdated
Py_DECREF(iter);
STACK_SHRINK(1);
/* Jump forward oparg, then skip following END_FOR and POP_TOP instructions */
Expand Down
2 changes: 1 addition & 1 deletion Python/generated_cases.c.h

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.