Skip to content

Commit 5595eec

Browse files
committed
Stackless issue python#235: Fix an assertion failure caused by python#188
This commit fixes an assert statement, that could fail since python#188. No functional change.
1 parent 4b817a8 commit 5595eec

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎Python/ceval.c‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -580,7 +580,8 @@ do { \
580580
Py_DECREF(f2); \
581581
if (SLP_PEEK_NEXT_FRAME(tstate) != f) { \
582582
assert(f->f_execute == slp_eval_frame_value || f->f_execute == slp_eval_frame_noval || \
583-
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup); \
583+
f->f_execute == slp_eval_frame_setup_with || f->f_execute == slp_eval_frame_with_cleanup || \
584+
f->f_execute == slp_eval_frame_yield_from); \
584585
if (f->f_execute == slp_eval_frame_noval) \
585586
f->f_execute = slp_eval_frame_value; \
586587
return (retval__); \

0 commit comments

Comments
 (0)