

def lambdify(leaves, expr):
    " Lambda for an expresion\n\n    >>> t = symbol('t', '{x: int, y: int, z: int, when: datetime}')\n    >>> f = lambdify([t], t.x + t.y)\n    >>> f((1, 10, 100, ''))\n    11\n\n    >>> f = lambdify([t.x, t.y, t.z, t.when], t.x + cos(t.y))\n    >>> f(1, 0, 100, '')\n    2.0\n    "
    (s, scope) = funcstr(leaves, expr)
    return eval(s, scope)

dataset/ETHPy150Open blaze/blaze/blaze/compute/pyfunc.py lambdify/original