◐ Shell
clean mode source ↗

gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops by gvanrossum · Pull Request #106696 · python/cpython

added 3 commits

July 12, 2023 11:13

@gvanrossum gvanrossum changed the title gh-106529: Split FOR_ITER_LIST into uops gh-106529: Split FOR_ITER_{LIST,TUPLE} into uops

Jul 12, 2023

@gvanrossum

iritkatriel

kgdiem pushed a commit to kgdiem/cpython that referenced this pull request

Jul 14, 2023
Also rename `_ITER_EXHAUSTED_XXX` to `_IS_ITER_EXHAUSTED_XXX` to make it clear this is a test.

gvanrossum added a commit that referenced this pull request

Jul 15, 2023
The Tier 2 opcode _IS_ITER_EXHAUSTED_LIST (and _TUPLE)
didn't set it->it_seq to NULL, causing a subtle bug
that resulted in test_exhausted_iterator in list_tests.py
to fail when running all tests with -Xuops.

The bug was introduced in gh-106696.

Added this as an explicit test.

Also fixed the dependencies for ceval.o -- it depends on executor_cases.c.h.