

def makeops(op, lists):
    " Construct operations from an op and parition lists\n\n    >>> from logpy.assoccomm import makeops\n    >>> makeops('add', [(1, 2), (3, 4, 5)])\n    (('add', 1, 2), ('add', 3, 4, 5))\n    "
    return tuple(((l[0] if (len(op) == 1) else build(op, l)) for l in lists))

dataset/ETHPy150Open logpy/logpy/logpy/assoccomm.py makeops/VarMisuse@27/121 `l`->`op`