[Python-Dev] itertools.chain should take an iterable ?

Paolino paolo_veronelli at libero.it
Thu Sep 1 19:58:40 CEST 2005


Working on a tree library I've found myself writing 
itertools.chain(*[child.method() for child in self]).
Well this happened after I tried instinctively 
itertools.chain(child.method() for child in self).

Is there a reason for this signature ?

Regards paolino


More information about the Python-Dev mailing list