
Dec. 1, 2003
4:18 p.m.
P.S. I'm leaning toward Alex's suggested argument order. Having a default identity function is too attractive to pass up. So the choice is between a style like map(None, s) or something closer to list.sorted(s, key=). Though the latter is not consistent with other itertools, it wins in the beauty department and its similarity with the key= is a accurate, helpful analogy.
Good. Have you thought about the name yet? Will it be grouped() or grouby()? --Guido van Rossum (home page: http://www.python.org/~guido/)