[Python-ideas] Where did we go wrong with negative stride?

Ethan Furman ethan at stoneleaf.us
Mon Oct 28 17:58:11 CET 2013


On 10/27/2013 10:04 AM, Guido van Rossum wrote:
>
> Thoughts? Is NumPy also affected?

It seems to me that the issue is not with negative strides, but with negative indexing:

   - off by one errors because the end starts at -1 and not -0
   - calculation errors because the end is -1 and not -0

--
~Ethan~


More information about the Python-ideas mailing list