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:
Guido van Rossum 1998-04-23 21:46:19 +00:00
parent bb189dbcb0
commit 507338e5ca
1 changed files with 1 additions and 1 deletions

View File

@ -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;