[Tutor] Flatten a list in tuples and remove doubles
Mark Lawrence
breamoreboy at yahoo.co.uk
Sun Jul 29 12:38:58 CEST 2012
On 29/07/2012 00:53, Alan Gauld wrote:
> On 29/07/12 00:12, Francesco Loffredo wrote:
>
>> Every time this happens, I have to admit that I'm a newbie and I've
>> still got a lot to learn about Python. Especially about its wonderful
>> standard library.
>
> Don't worry, I've been using Python for 15 years and there are
> plenty modules I haven't explored yet - and I must admit itertools
> is one that I really should get to grips with but never seem to
> find the time!
>
You're nuts :) Itertools to me is the Swiss Army Knife of the standard
library, I've used it umpteen times. Even the recipes are on PyPi. The
investment of a little time studying it will easily be repaid in the
long term.
--
Cheers.
Mark Lawrence.
More information about the Tutor
mailing list