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