itertools.groupby

Raymond Hettinger python at rcn.com
Mon May 28 13:29:48 EDT 2007


On May 28, 8:34 am, 7stud <bbxx789_0... at yahoo.com> wrote:
> >- there are two more examples on the next page.  those two
> >  examples also give sample inputs and outputs.
>
> I didn't see those.

Ah, there's the rub.  The two sections of examples and recipes
are there for a reason.  This isn't a beginner module.  It is
full of high-speed optimizations applied in a functional style.
That's not for everyone, so it isn't a loss if someone sticks
with writing plain, clear everyday Python instead of an itertool.


Raymond




More information about the Python-list mailing list