def make_compute(text, deps):
 func = (lambda self: safe_eval(text, SAFE_EVAL_BASE, {'self': self}, mode='exec'))
 deps = [arg.strip() for arg in (deps or '').split(',')]
 return api.depends(*deps)(func)

def make_compute ( text , deps ) : func = ( lambda self : safe_eval ( text , SAFE_EVAL_BASE , { 'self' : self } , mode = 'exec' ) ) deps = [ arg . strip ( ) for arg in ( deps or '' ) . split ( ',' ) ] return api . depends ( * deps ) ( func )
return a compute function from its code body and dependencies .