summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-08-04 15:27:50 (GMT)
committerGuido van Rossum <guido@python.org>1998-08-04 15:27:50 (GMT)
commit5053efc2c4e5dda0c89c9589315111c89db6288b (patch)
tree673589a845ca1068eb0b7c7c28690717a4ac2ca4
parentc96417980cb700555255acfa70358c46c1a6e061 (diff)
downloadcpython-5053efc2c4e5dda0c89c9589315111c89db6288b.zip
cpython-5053efc2c4e5dda0c89c9589315111c89db6288b.tar.gz
cpython-5053efc2c4e5dda0c89c9589315111c89db6288b.tar.bz2
In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and
get rid of redundant error check.
-rw-r--r--Python/ceval.c4
1 files changed, 1 insertions, 3 deletions
diff --git a/Python/ceval.c b/Python/ceval.c
index 4331786..ff5ee50 100644
--- a/Python/ceval.c
+++ b/Python/ceval.c
@@ -1360,9 +1360,7 @@ eval_code2(co, globals, locals,
if (x != NULL) {
for (; --oparg >= 0;) {
w = POP();
- err = PyList_SetItem(x, oparg, w);
- if (err != 0)
- break;
+ PyList_SET_ITEM(x, oparg, w);
}
PUSH(x);
continue;