slicing return iter?
arnodel at googlemail.com
Sat Oct 17 20:11:48 CEST 2009
On Oct 17, 6:05 pm, StarWing <weasley... at sina.com> wrote:
> On 10月17日, 下午11时56分, Arnaud Delobelle <arno... at 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!
More information about the Python-list