diff Python/ceval.c @ 8811:e58a614fb8e4 legacy-trunk

In BUILD_LIST, use PyList_SET_ITEM() instead of PyList_SetItem(); and get rid of redundant error check.
author Guido van Rossum <guido@python.org>
date Tue, 04 Aug 1998 15:27:50 +0000
parents 97a1108b0eb2
children 118f9f73abe9
line wrap: on
line diff
--- a/Python/ceval.c	Tue Aug 04 15:26:23 1998 +0000
+++ b/Python/ceval.c	Tue Aug 04 15:27:50 1998 +0000
@@ -1360,9 +1360,7 @@
 			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;