diff options
author | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-17 00:38:28 (GMT) |
---|---|---|
committer | Antoine Pitrou <solipsis@pitrou.net> | 2008-12-17 00:38:28 (GMT) |
commit | d0c3515bc5b31a19d00bfc685d7657ad7d79fa94 (patch) | |
tree | 299253e76cf9b66349bdaf0cca8c95da19671c74 /Python/ceval.c | |
parent | 43caaa09ea364aab6cbd7ede2aa9c3d004a129a5 (diff) | |
download | cpython-d0c3515bc5b31a19d00bfc685d7657ad7d79fa94.zip cpython-d0c3515bc5b31a19d00bfc685d7657ad7d79fa94.tar.gz cpython-d0c3515bc5b31a19d00bfc685d7657ad7d79fa94.tar.bz2 |
Issue #2183: Simplify and optimize bytecode for list comprehensions.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/Python/ceval.c b/Python/ceval.c index bd35185..09501af 100644 --- a/Python/ceval.c +++ b/Python/ceval.c @@ -1294,9 +1294,8 @@ PyEval_EvalFrameEx(PyFrameObject *f, int throwflag) case LIST_APPEND: w = POP(); - v = POP(); + v = stack_pointer[-oparg]; err = PyList_Append(v, w); - Py_DECREF(v); Py_DECREF(w); if (err == 0) { PREDICT(JUMP_ABSOLUTE); |