From: Guido van Rossum Date: Tue, 4 Aug 1998 15:27:50 +0000 (+0000) Subject: In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and X-Git-Tag: v1.5.2a1~162 X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=5053efc2c4e5dda0c89c9589315111c89db6288b;p=thirdparty%2FPython%2Fcpython.git In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and get rid of redundant error check. --- diff --git a/Python/ceval.c b/Python/ceval.c index 4331786aa71d..ff5ee509f614 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;