sum for sequences?

Steven D'Aprano steven at REMOVE.THIS.cybersource.com.au
Tue Mar 30 05:02:25 CEST 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