builtin_predicate.py 文件源码

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

项目:selinon 作者: selinon 项目源码 文件源码
def ast(self):
        """Python AST of this predicate (construct transitively for all indirect children as well).

        :return: AST of describing all children predicates
        """
        # We should return:
        #   return ast.NameConstant(value=True)
        # but it does not work with codegen
        return ast.Name(id='True', ctx=ast.Load())
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号