def expr_eval(expr):
 c = test_expr(expr, _EXPR_OPCODES)
 return unsafe_eval(c)

def expr_eval ( expr ) : c = test_expr ( expr , _EXPR_OPCODES ) return unsafe_eval ( c )
expr_eval -> value restricted python expression evaluation evaluates a string that contains an expression that only uses python constants .