diff options
author | Guido van Rossum <guido@python.org> | 2002-06-13 17:59:51 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 2002-06-13 17:59:51 (GMT) |
commit | fea59e7f766b950ccd55f9eee87d4032a768fdcc (patch) | |
tree | b668da1c6ff6ce390fa4ee95016a7af7c184208c /Python | |
parent | efb9097add12d372f3a41c6fa884235ba2291248 (diff) | |
download | cpython-fea59e7f766b950ccd55f9eee87d4032a768fdcc.zip cpython-fea59e7f766b950ccd55f9eee87d4032a768fdcc.tar.gz cpython-fea59e7f766b950ccd55f9eee87d4032a768fdcc.tar.bz2 |
The opcode FOR_LOOP no longer exists.
Diffstat (limited to 'Python')
-rw-r--r-- | Python/ceval.c | 31 |
1 files changed, 0 insertions, 31 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index b9c0d5d..12397b4 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1942,37 +1942,6 @@ eval_frame(PyFrameObject *f) } break; - case FOR_LOOP: - /* for v in s: ... - On entry: stack contains s, i. - On exit: stack contains s, i+1, s[i]; - but if loop exhausted: - s, i are popped, and we jump */ - w = POP(); /* Loop index */ - v = POP(); /* Sequence object */ - u = loop_subscript(v, w); - if (u != NULL) { - PUSH(v); - x = PyInt_FromLong(PyInt_AsLong(w)+1); - PUSH(x); - Py_DECREF(w); - PUSH(u); - if (x != NULL) continue; - } - else { - Py_DECREF(v); - Py_DECREF(w); - /* A NULL can mean "s exhausted" - but also an error: */ - if (PyErr_Occurred()) - why = WHY_EXCEPTION; - else { - JUMPBY(oparg); - continue; - } - } - break; - case SETUP_LOOP: case SETUP_EXCEPT: case SETUP_FINALLY: |