
On 5/29/07, Steve Howell <showell30@yahoo.com> wrote:
--- Ron Adam <rrr@ronadam.com> wrote:
However, I do think there could be very useful uses for a standard sorting structure of some sort. That's the sorting as in mail sorters, or category sorters, that produce several streams of output instead of just one.
Would that be called a de-comprehension?
Here is some category-sorting code, FWIW, where every employee, Fred or not, gets a 50% raise, and employees are partitioned according to their Fredness.
It doesn't use a general iterator, so maybe I'm missing your point.
(snipped)
Or maybe you skipped homework on the itertools.groupby thread of c.l.py. ;-) George -- "If I have been able to see further, it was only because I stood on the shoulders of million monkeys."