gh-111354: define names for RESUME oparg values (#111365)

This commit is contained in:
Irit Katriel
2023-10-26 16:30:18 +01:00
committed by GitHub
parent 309efb39dc
commit a0c414c35d
7 changed files with 16 additions and 8 deletions

View File

@@ -147,7 +147,7 @@ dummy_func(
next_instr--;
}
else {
if (oparg < 2) {
if (oparg < RESUME_AFTER_YIELD_FROM) {
CHECK_EVAL_BREAKER();
}
next_instr[-1].op.code = RESUME_CHECK;