In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and

get rid of redundant error check.
This commit is contained in:
Guido van Rossum 1998-08-04 15:27:50 +00:00
parent c96417980c
commit 5053efc2c4

View file

@ -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;