Fred's right -- we need PyList_SET_ITEM().

This commit is contained in:
Guido van Rossum 1998-04-24 18:22:02 +00:00
parent 7b7a2c2e11
commit a937d14898
4 changed files with 12 additions and 1 deletions

View file

@ -1282,7 +1282,7 @@ builtin_range(self, args)
Py_DECREF(v);
return NULL;
}
PyList_GET_ITEM(v, i) = w;
PyList_SET_ITEM(v, i, w);
ilow += istep;
}
return v;