[Python-ideas] Where did we go wrong with negative stride?
Antoine Pitrou
solipsis at pitrou.net
Mon Oct 28 00:20:09 CET 2013
On Sun, 27 Oct 2013 16:56:34 -0500
Tim Peters <tim.peters at gmail.com> wrote:
> [Guido]
> > I wouldn't take out negative strides completely, but I might consider
> > deprecating lower and upper bounds other than None (== missing). So a[::-1]
> > would still work, and a[None:None:-1] would be a verbose way of spelling the
> > same,
>
> Happy idea.
>
> > but a[-1:-6:-1] would be deprecated.
>
> Not sure I've _ever_ seen that in real life.
If it's never seen in real life, then there's probably no urge to
deprecate it and later replace it with a new thing, IMHO.
Also, I get the feeling it's a bit early to start talking about
Python 4 (is that supposed to happen at all?).
Regards
Antoine.
More information about the Python-ideas
mailing list