Hacker News new | past | comments | ask | show | jobs | submit login

I may be missing something, but why isn't skipping your list comprehension maintaining the benefit of using a generator?

   >>> from itertools import chain
   >>> chain(*[['a', 'b', 'c'], ['d', 'e', 'f']])



It is, but I don't get to show you the result of the chain that way. :)




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: