Skip to content
This repository was archived by the owner on Feb 13, 2025. It is now read-only.

Commit 9de60fd

Browse files
author
Anselm Kruis
committed
Stackless issue #254: simplify Stackless mods of interpreter main loop
Remove redundant operations to prepare for merging the changes introduced by bpo-17611.
1 parent fdd3c00 commit 9de60fd

File tree

1 file changed

+0
-6
lines changed

1 file changed

+0
-6
lines changed

Python/ceval.c

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2032,7 +2032,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
20322032
#ifdef STACKLESS
20332033
if (STACKLESS_UNWINDING(retval)) {
20342034
HANDLE_UNWINDING(slp_eval_frame_yield_from, 0, retval);
2035-
receiver = TOP();
20362035
}
20372036
#endif
20382037
if (retval == NULL) {
@@ -3057,7 +3056,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
30573056
}
30583057
if (STACKLESS_UNWINDING(next)) {
30593058
HANDLE_UNWINDING(slp_eval_frame_iter, 1, next);
3060-
iter = TOP();
30613059
}
30623060
#else
30633061
next = (*iter->ob_type->tp_iternext)(iter);
@@ -3264,10 +3262,6 @@ _PyEval_EvalFrameDefault(PyFrameObject *f, int throwflag)
32643262
#ifdef STACKLESS
32653263
if (STACKLESS_UNWINDING(res)) {
32663264
HANDLE_UNWINDING(slp_eval_frame_with_cleanup, 0, res);
3267-
/* recompute exc after the goto */
3268-
exc = TOP();
3269-
if (PyLong_Check(exc))
3270-
exc = Py_None;
32713265
}
32723266
#endif
32733267
if (res == NULL)

0 commit comments

Comments
 (0)