newbie/ merging lists of lists with items in common
Laurent Pointal
laurent.pointal at limsi.fr
Fri Feb 2 09:51:28 EST 2007
Neil Cerutti a écrit :
> On 2007-02-02, ardief <rachele.defelice at gmail.com> 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.
More information about the Python-list
mailing list