def expr(expr):
 c = test_expr(expr, _expr_codes)
 return eval(c)

def expr ( expr ) : c = test_expr ( expr , _expr_codes ) return eval ( c )
expr -> value safe python expression evaluation evaluates a string that contains an expression that only uses python constants .