> > 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
- [Tutor] While until the end of a list Toni Fuente via Tutor
- Re: [Tutor] While until the end of a list David Rock
- Re: [Tutor] While until the end of a list Toni Fuente via Tutor
- Re: [Tutor] While until the end of a li... Mats Wichmann
- Re: [Tutor] While until the end of a list Peter Otten
- Re: [Tutor] While until the end of a list Toni Fuente via Tutor
- Re: [Tutor] While until the end of a li... Peter Otten
- Re: [Tutor] While until the end of ... Toni Fuente via Tutor