Kaydet (Commit) 5053efc2 authored tarafından Guido van Rossum's avatar Guido van Rossum

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

get rid of redundant error check.
üst c9641798
...@@ -1360,9 +1360,7 @@ eval_code2(co, globals, locals, ...@@ -1360,9 +1360,7 @@ eval_code2(co, globals, locals,
if (x != NULL) { if (x != NULL) {
for (; --oparg >= 0;) { for (; --oparg >= 0;) {
w = POP(); w = POP();
err = PyList_SetItem(x, oparg, w); PyList_SET_ITEM(x, oparg, w);
if (err != 0)
break;
} }
PUSH(x); PUSH(x);
continue; continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment