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.
This commit is contained in:
parent
bb189dbcb0
commit
507338e5ca
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue