From 507338e5caf22fa2da780e1f3e2f32e08f1800f6 Mon Sep 17 00:00:00 2001 From: Guido van Rossum Date: Thu, 23 Apr 1998 21:46:19 +0000 Subject: 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. --- Python/bltinmodule.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Python/bltinmodule.c b/Python/bltinmodule.c index 3297332..8a4215b 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; -- cgit v0.12