

def product(*args, **kwds):
    '\n    Taken from http://docs.python.org/library/itertools.html#itertools.product\n    '
    pools = (map(tuple, args) * kwds.get('repeat', 1))
    result = [[]]
    for pool in pools:
        result = [(x + [pool]) for x in result for y in pool]
    for prod in result:
        (yield tuple(prod))

dataset/ETHPy150Open AppScale/appscale/AppServer/lib/django-1.4/django/utils/itercompat.py product/VarMisuse@57/91 `y`->`pool`