On 29/10/2013 08:53, Duncan Booth wrote:
Steven D'Aprano <st...@pearwood.info> wrote:

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

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

With any negative stride your example is just the empty sequence.



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.)

For those of us that don't really want to join another mailing list, could
you summarise what change is being proposed?


Umpteen options have been put forward. IMHO the bookies favourite is currently being endorsed by Tim Peters and Terry Reedy, yours odds may vary :)

--
Python is the second best programming language in the world.
But the best has yet to be invented.  Christian Tismer

Mark Lawrence

--
https://mail.python.org/mailman/listinfo/python-list

Reply via email to