On Fri, Sep 13, 2013 at 5:01 PM, Dhruv Baldawa <dhruvbald...@gmail.com>wrote:

> d = [''.join(x) for x in itertools.product(a, b, c)]
>

Actually, using itertools.imap would ensure that the elements aren't
computed till necessary. So...

d = itertools.imap(''.join, itertools.product(a, b, c))

- d
_______________________________________________
BangPypers mailing list
BangPypers@python.org
https://mail.python.org/mailman/listinfo/bangpypers

Reply via email to