Skip to content
Merged
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
Next Next commit
Fix bug in copy detection
I was comparing the last preceding poke with the *last* peek,
rather than the *first* peek.

Unfortunately this bug obscured another bug, which I have yet to fix:
When the last preceding poke is UNUSED, the first peek disappears,
leaving the variable unassigned.
  • Loading branch information
gvanrossum committed Aug 23, 2023
commit 87eed1237d2056de6f66ac95fa379533e94c3cf2
2 changes: 1 addition & 1 deletion Tools/cases_generator/stacking.py
Original file line number Diff line number Diff line change
Expand Up @@ -179,7 +179,7 @@ def __init__(
while (
pred.pokes
and self.peeks
and pred.pokes[-1].effect == self.peeks[-1].effect
and pred.pokes[-1].effect == self.peeks[0].effect
):
src = pred.pokes.pop(-1).effect
dst = self.peeks.pop(0).effect
Expand Down