sum for sequences?

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Mon Mar 29 23:02:25 EDT 2010


On Mon, 29 Mar 2010 16:36:17 -0700, Paul Rubin wrote:

> 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.

Correction noted. Obviously I'm not Dutch.


-- 
Steven



More information about the Python-list mailing list