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 3297332..8a4215b 100644
--- a/Python/bltinmodule.c
+++ b/Python/bltinmodule.c
@@ -1282,7 +1282,7 @@
 			Py_DECREF(v);
 			return NULL;
 		}
-		PyList_SetItem(v, i, w);
+		PyList_GET_ITEM(v, i) = w;
 		ilow += istep;
 	}
 	return v;