On Fri, Sep 13, 2013 at 5:01 PM, Dhruv Baldawa <[email protected]>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
[email protected]
https://mail.python.org/mailman/listinfo/bangpypers
