> 
> 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. 
_______________________________________________
Tutor maillist  -  Tutor@python.org
To unsubscribe or change subscription options:
https://mail.python.org/mailman/listinfo/tutor

Reply via email to