diff options
author | Guido van Rossum <guido@python.org> | 1998-08-04 15:27:50 (GMT) |
---|---|---|
committer | Guido van Rossum <guido@python.org> | 1998-08-04 15:27:50 (GMT) |
commit | 5053efc2c4e5dda0c89c9589315111c89db6288b (patch) | |
tree | 673589a845ca1068eb0b7c7c28690717a4ac2ca4 /Python/ceval.c | |
parent | c96417980cb700555255acfa70358c46c1a6e061 (diff) | |
download | cpython-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.
Diffstat (limited to 'Python/ceval.c')
-rw-r--r-- | Python/ceval.c | 4 |
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; |