def handle_UnaryOp(state, node, ctx):
state, result = peval_call(
state, ctx, UNARY_OPS[type(node.op)], args=[node.operand])
if not is_known_value(result):
state = state.update(temp_bindings=state.temp_bindings.del_(result.func.id))
result = ast.UnaryOp(op=node.op, operand=result.args[0])
return state, result
评论列表
文章目录