From 5053efc2c4e5dda0c89c9589315111c89db6288b Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Tue, 4 Aug 1998 15:27:50 +0000 Subject: In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and get rid of redundant error check. --- Python/ceval.c | 4 +--- 1 file changed, 1 insertion(+), 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; -- cgit v0.12