diff Python/bltinmodule.c @ 8132:4323b2433581 legacy-trunk

In-line the code in range() to set the list items; there's really no need to call PyList_SetItem(v,i,w) when PyList_GET_ITEM(v,i)=w {sic} will do.
author Guido van Rossum <guido@python.org>
date Thu, 23 Apr 1998 21:46:19 +0000
parents a909a2869ac5
children 9d0310143600
line wrap: on
line diff
--- a/Python/bltinmodule.c	Thu Apr 23 21:40:02 1998 +0000
+++ b/Python/bltinmodule.c	Thu Apr 23 21:46:19 1998 +0000
@@ -1282,7 +1282,7 @@
 			Py_DECREF(v);
 			return NULL;
 		}
-		PyList_SetItem(v, i, w);
+		PyList_GET_ITEM(v, i) = w;
 		ilow += istep;
 	}
 	return v;