Refactor Objects/genobject.c to get rid of these hacks/issues: - ~~`gen_close` accesses `instr_ptr - 1`~~ - `_PyGen_yf` peeks into the execution stack - Comparisons with enum values - ``result`` arg reused in ``gen_send_ex2`` for two different purposes (one of which is not the result) <!-- gh-linked-prs --> ### Linked PRs * gh-111365 * gh-111368 * gh-111459 * gh-111648 * gh-111708 <!-- /gh-linked-prs -->