Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
add comment for incref rationale
  • Loading branch information
eendebakpt committed Feb 4, 2026
commit a91f13ceab22568bdead16c9f4188e6e4302d4cc
2 changes: 1 addition & 1 deletion Modules/itertoolsmodule.c
Original file line number Diff line number Diff line change
Expand Up @@ -366,7 +366,7 @@ pairwise_next_lock_held(PyObject *op)
return NULL;
}
}
Py_INCREF(old);
Py_INCREF(old); // needed because of reentant calls via call to the iterator
new = (*Py_TYPE(it)->tp_iternext)(it);
if (new == NULL) {
Py_CLEAR(po->it);
Expand Down
Loading