commit | d0c3515bc5b31a19d00bfc685d7657ad7d79fa94 | [log] [tgz] |
---|---|---|
author | Antoine Pitrou <solipsis@pitrou.net> | Wed Dec 17 00:38:28 2008 +0000 |
committer | Antoine Pitrou <solipsis@pitrou.net> | Wed Dec 17 00:38:28 2008 +0000 |
tree | 299253e76cf9b66349bdaf0cca8c95da19671c74 | |
parent | 43caaa09ea364aab6cbd7ede2aa9c3d004a129a5 [diff] [blame] |
Issue #2183: Simplify and optimize bytecode for list comprehensions.
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 @@ 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);