Neil Cerutti a écrit :
> On 2007-02-02, ardief <[EMAIL PROTECTED]> wrote:
<zip>

> This is a job for... duhn-duhn-DAAAAH! Captain CHAOS!
> 
> Er... I mean itertools.groupby.
> 
<zip>
>     def key_func(t):
>         return t[0]

Not needed: --> from operator import itemgetter

See in the example:
http://docs.python.org/lib/itertools-example.html

So much stuff in libraries, so few we know. Thanks to doc writers,
Usenet contributors & Google search engines.
-- 
http://mail.python.org/mailman/listinfo/python-list

Reply via email to