On Fri, Sep 13, 2013 at 5:01 PM, Dhruv Baldawa <dhruvbaldawa at 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