Michael Spencer wrote: > itertools.groupby makes this very straightforward:
I was considering this function, but then it seemed like it was only used for determing consecutive numbers like 1, 2, 3 -- not consecutive equivalent numbers like 1, 1, 1. But is that not right? -- http://mail.python.org/mailman/listinfo/python-list