Re: slicing a list but in downward fashion

2008-03-19 Thread Mensanator
On Mar 19, 6:37 pm, Lee Sander <[EMAIL PROTECTED]> wrote: > hi, > i have a list and i can get elements form it via slicing > L[start:stop] > but sometimes the start is > stop i.e. I want to go in the opposite > direction,eg > L[10:2], > > mattab lets you do L(10:-1:2) to achive this, is there a way

slicing a list but in downward fashion

2008-03-19 Thread Lee Sander
hi, i have a list and i can get elements form it via slicing L[start:stop] but sometimes the start is > stop i.e. I want to go in the opposite direction,eg L[10:2], mattab lets you do L(10:-1:2) to achive this, is there a way to do this in python? thanks L -- http://mail.python.org/mailman/listin