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

Nick Coghlan ncoghlan at gmail.com
Tue Oct 29 15:04:30 CET 2013


On 29 October 2013 23:55, Mark Lawrence <breamoreboy at yahoo.co.uk> wrote:
> On 29/10/2013 13:32, Nick Coghlan wrote:
>>
>>
>> So, at this point, I still quite like the idea of adding a
>> "reverse=True" keyword only arg to slice and range (with the semantics
>> of rslice above), and then revisit the idea of offering syntax for it
>> in Python 3.5.
>>
>
> I sincerely hope that you meant reverse=False? :)

I could claim that I was referring to the way you would call it (which
is why the subclass idea is also attractive), but yes, that's really
just a typo and the default would be the other way around :)

Cheers,
Nick.

-- 
Nick Coghlan   |   ncoghlan at gmail.com   |   Brisbane, Australia


More information about the Python-ideas mailing list