Commit b65b9f1c authored by Guido van Rossum's avatar Guido van Rossum

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.
parent 950d8305
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment