Arithmetic sequences in Python

Paul Rubin http
Tue Jan 17 04:49:10 EST 2006


"Gregory Petrosyan" <gregory.petrosyan at gmail.com> writes:
> 2) [5 .. 0] -> [5,4,3,2,1,0]
> So, if "next" is omited, let the default step be 1 if "first" < "last"
> and -1 otherwise.

So what do you want [a..b] to do?  Dynamically decide what direction
to go?  Ugh!



More information about the Python-list mailing list