Steven Bethard wrote: > I suspect there's a reason that it's done this way, but I agree with you > that this seems strange. Have you filed a bug report on Sourceforge?
I gather that the slice class is young, so my guess is bug. I filed the report -- my first Sourceforge bug report. > BTW, a simpler example of the same phenomenon is: > > py> range(10)[slice(None, None, -2)] > [9, 7, 5, 3, 1] > py> slice(None, None, -2).indices(10) > (9, -1, -2) > py> range(10)[9:-1:-2] > [] Ah, thanks. -- --Bryan -- http://mail.python.org/mailman/listinfo/python-list