[Tutor] While until the end of a list

Toni Fuente tonifuente at yahoo.co.uk
Tue Mar 14 09:31:13 EDT 2017


> 
> for item in itertools.chain.from_iterable(chunk):
>    ...
> 
> will work, too, without the consumption of time and memory needed to build 
> the list.
> 
Thank you Peter, yes it works as I wanted like that. 


More information about the Tutor mailing list