Slicing with negative strides

Steven D'Aprano steve at pearwood.info
Tue Oct 29 01:22:00 EDT 2013


Does anyone here use slices (or range/xrange) with negative strides other 
than -1?

E.g. sequence[2:15:-3]


If so, there is a discussion (long, long, looooooong discussion) on the 
python-ideas mailing list, debating whether or not to deprecate or change 
the behaviour of slicing with negative strides. So if you care about the 
current behaviour, now is the time to stand up and be counted.

(Standing up *here* is fine, don't feel that you have to join yet another 
list.)



-- 
Steven



More information about the Python-list mailing list