def const_eval(expr):
 c = test_expr(expr, _CONST_OPCODES)
 return unsafe_eval(c)

def const_eval ( expr ) : c = test_expr ( expr , _CONST_OPCODES ) return unsafe_eval ( c )
const_eval -> value safe python constant evaluation evaluates a string that contains an expression describing a python constant .