summaryrefslogtreecommitdiffstats
path: root/Python
diff options
context:
space:
mode:
authorGuido van Rossum <guido@python.org>1998-04-23 21:46:19 (GMT)
committerGuido van Rossum <guido@python.org>1998-04-23 21:46:19 (GMT)
commit507338e5caf22fa2da780e1f3e2f32e08f1800f6 (patch)
treed1f71ad860660665d99cdd384b25b07cb5edaf55 /Python
parentbb189dbcb0d2b9aca6f1aeb492bdbe2362e3a78b (diff)
downloadcpython-507338e5caf22fa2da780e1f3e2f32e08f1800f6.zip
cpython-507338e5caf22fa2da780e1f3e2f32e08f1800f6.tar.gz
cpython-507338e5caf22fa2da780e1f3e2f32e08f1800f6.tar.bz2
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.
Diffstat (limited to 'Python')
-rw-r--r--Python/bltinmodule.c2
1 files changed, 1 insertions, 1 deletions
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;