python-dev is hashing out how to fit groupby() filters on top of interators (i.e., return a sequence of consecutive values from an iterator all sharing a common property).
In the course of discussion, this tidbit came up:
From: Guido van Rossum <guido@python.org>
Subject: Re: [Python-Dev] "groupby" iterator
Here's yet another implementation for itertoolsmodule.c. (see attachment) I wrote it after the shower (really!) :)Wow! Thanks. Let's all remember to take or showers and maybe Python will become the cleanest programming language. :)