From: Guido van Rossum Date: Thu, 23 Apr 1998 21:46:19 +0000 (+0000) Subject: In-line the code in range() to set the list items; there's really no X-Git-Tag: v1.5.2a1~841 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=507338e5caf22fa2da780e1f3e2f32e08f1800f6;p=thirdparty%2FPython%2Fcpython.git 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. --- diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 32973327d4ef..8a4215bad5c9 100644 --- a/Python/bltinmodule.c +++ b/Python/bltinmodule.c @@ -1282,7 +1282,7 @@ builtin_range(self, args) Py_DECREF(v); return NULL; } - PyList_SetItem(v, i, w); + PyList_GET_ITEM(v, i) = w; ilow += istep; } return v;