Again, we needed this for Cython/HPy (in particular, for the fannkuch benchmark) because getting and setting slices required multiple upcalls like this:
The proposed APIs are probably worth some discussion. E.g. we may think about introducing a third argument to each denoting the slice's step. Right now, this will always be 1.
Again, we needed this for Cython/HPy (in particular, for the
fannkuch
benchmark) because getting and setting slices required multiple upcalls like this:Now, this can be done with:
The proposed APIs are probably worth some discussion. E.g. we may think about introducing a third argument to each denoting the slice's
step
. Right now, this will always be1
.