On 8/29/06, Greg Ewing <[EMAIL PROTECTED]> wrote:
> Nick Coghlan wrote:
>
> >    reversed(seq[start:stop:step]) becomes 
> > seq[(stop-1)%abs(step):start-1:-step]
> >
> > An rslice builtin would make the latter version significantly easier to 
> > read:
> >
> >    seq[rslice(start, stop, step)]
>
> How would this deal with omitted start and/or stop values?

More generally, given start/stop/step don't have to be numbers, how
can this work in general?

I don't actually see a need for this, given that
reversed(seq[start:stop:step]) covers all of the real use cases I can
think of...

Paul.
_______________________________________________
Python-Dev mailing list
Python-Dev@python.org
http://mail.python.org/mailman/listinfo/python-dev
Unsubscribe: 
http://mail.python.org/mailman/options/python-dev/archive%40mail-archive.com

Reply via email to