octopus_rlcompleter.py 文件源码

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

项目:octopus 作者: octopus-platform 项目源码 文件源码
def set_context(self):
        line = readline.get_line_buffer()
        self.context = "start"
        for c in reversed(line):
            if c in '.':
                self.context = "traversal"
                return
            if c in ')}':
                self.context = "complete"
                return
            elif c in '({':
                self.context = "groovy"
                return
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号