commit | 507338e5caf22fa2da780e1f3e2f32e08f1800f6 | [log] [tgz] |
---|---|---|
author | Guido van Rossum <guido@python.org> | Thu Apr 23 21:46:19 1998 +0000 |
committer | Guido van Rossum <guido@python.org> | Thu Apr 23 21:46:19 1998 +0000 |
tree | d1f71ad860660665d99cdd384b25b07cb5edaf55 | |
parent | bb189dbcb0d2b9aca6f1aeb492bdbe2362e3a78b [diff] |
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;