sum for sequences?

Paul Rubin no.email at nospam.invalid
Tue Mar 30 01:36:17 CEST 2010


Steven D'Aprano <steve at REMOVE-THIS-cybersource.com.au> writes:
> * Iterating over an arbitrary sequence of arbitrary sequences? 
>   Use itertools.chain.

chain is only for finite sequences.  For arbitrary sequences,
use chain.from_iterable. 



More information about the Python-list mailing list