Bengt Richter wrote: > It looks to me like itertools.groupby could get you close to what you want, > e.g., (untested) Ah, groupby. The generic string.split() equivalent. But the doc said the input needs to be sorted.
-- http://mail.python.org/mailman/listinfo/python-list