> > iseq = irange(start, len(sq)) > > if godown: iseq = reversed(iseq) > > But this wouldn't work, would it? irange() is an iterator, but > reversed() only works for sequences (it refuses to secretly buffer the > whole thing). It works fine with xrange though. Raymond Hettinger