const_fold.py 文件源码

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

项目:fatoptimizer 作者: vstinner 项目源码 文件源码
def visit_Subscript(self, node):
        if not self.config.constant_folding:
            return

        if isinstance(node.slice, ast.Slice):
            new_node = self.subscript_slice(node)
            if new_node is not None:
                return new_node

        elif isinstance(node.slice, ast.Index):
            new_node = self.subscript_index(node)
            if new_node is not None:
                return new_node
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号