Implemented setitem for Py_List for slice arguments.
Added getIndices() function to Py_Slice. This is congruent with PySlice_GetIndicesEx in CPython.
Also, fixed the implementation of getitem for slices, the previous implementation did not account for negative steps.
Also, added getArray() to Py_List, so that the contents of Py_List can be accessed without having to iterate over it using an iterator or using __getitem__, which would create a new Py_Int object for every access.
Implemented setitem for
Py_List
for slice arguments. AddedgetIndices()
function toPy_Slice
. This is congruent withPySlice_GetIndicesEx
in CPython. Also, fixed the implementation of getitem for slices, the previous implementation did not account for negative steps.Also, added
getArray()
toPy_List
, so that the contents ofPy_List
can be accessed without having to iterate over it using an iterator or using__getitem__
, which would create a newPy_Int
object for every access.