I guess the culprit is there. If we remove the _GUARD_NOT_EXHAUSTED_LIST from is_for_iter_test, the problem will go away (although it can still be reproduced in other ways using other (range, tuple) iterators).
This is a tier two thing, not a JIT thing. Let's reserve the topic-JIT label for issues that reproduce with --enable-experimental-jit (but not --enable-experimental-jit=interpreter).
Activity
brandtbucher commented on Jul 1, 2024
This is a tier two thing, not a JIT thing. Let's reserve the topic-JIT label for issues that reproduce with --enable-experimental-jit (but not --enable-experimental-jit=interpreter).
GH-121012: Set index to -1 when list iterators become exhausted in ti…
pythonGH-121012: Set index to -1 when list iterators become exhausted…
[3.13] GH-121012: Set index to -1 when list iterators become exhauste…
pythonGH-121012: Set index to -1 when list iterators become exhausted…
pythonGH-121012: Set index to -1 when list iterators become exhausted…