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

Serhiy Storchaka storchaka at gmail.com
Sun Oct 27 22:19:42 CET 2013


27.10.13 22:44, Guido van Rossum написав(ла):
> Sadly, I agree. If we wanted to change this in Python 4, we'd probably
> have to start deprecating range() with negative stride today to force
> people to replace their uses of that with reversed(range(...)).

Or with range(...)[::-1] ;-)




More information about the Python-ideas mailing list