On Oct 17, 6:05 pm, StarWing <weasley...@sina.com> wrote: > On 10月17日, 下午11时56分, Arnaud Delobelle <arno...@googlemail.com> wrote: > > thanks for attention :-) > > > Check the itertools module. > > > HTH > > > -- > > Arnaud > > I had checked it for serval times. maybe it's my inattention :-(. but > what i could find the nearest thing is itertools.islice. but it can't > process negative index -- that's supported by slice. so I need > something, bind object with slice, and return a iter. I can find > anything like it...:-(
Sorry, I read your post too quickly. I don't think there's anything in the standard library. Your solution is fine! -- Arnaud -- http://mail.python.org/mailman/listinfo/python-list