expression.py 文件源码

python
阅读 24 收藏 0 点赞 0 评论 0

项目:peval 作者: fjarri 项目源码 文件源码
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
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号