Peter Hansen wrote: > Peter Otten wrote: > >> But if that lets you sleep better at night, change Peter Hansen's >> suggestion to use islice(): > > No! Yours is much more elegant! Wonderful... zero overhead. I should mention I've picked up the trick on c.l.py (don't remember the poster). Peter