_pydev_completer.py 文件源码

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

项目:specto 作者: mrknow 项目源码 文件源码
def complete(self, text):
        """Return the next possible completion for 'text'.

        This is called successively with state == 0, 1, 2, ... until it
        returns None.  The completion should begin with 'text'.

        """
        if self.use_main_ns:
            #In pydev this option should never be used
            raise RuntimeError('Namespace must be provided!')
            self.namespace = __main__.__dict__ #@UndefinedVariable

        if "." in text:
            return self.attr_matches(text)
        else:
            return self.global_matches(text)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号