Alex Martelli: > Right. However, "return sum(1 for _ in iterator)" may be a handier way > to express the same desctructive semantics as the last 4 lines here.
With the speed tests I have done my version did come out as the faster one. Bye, bearophile -- http://mail.python.org/mailman/listinfo/python-list