Eric Abrahamsen wrote: > Itertools.groupby is totally impenetrable to me Maybe this will help: http://personalpages.tds.net/~kent37/blog/arch_m1_2005_12.html#e69 Kent