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

Chris Angelico rosuav at gmail.com
Tue Oct 29 07:31:25 CET 2013


On Tue, Oct 29, 2013 at 2:43 PM, MRAB <python at mrabarnett.plus.com> wrote:
> But if you're really set on having different types of some kind, how about
> real counting from the left and imaginary counting from the right:
>
>     seq[5j : 0j] # The last 5 items
>
>     seq[1 : 1j] # From second to second-from-last

Interesting idea, but is the notion of indexing a list with a float
going to be another huge can of worms?

ChrisA


More information about the Python-ideas mailing list