_pydev_completer.py 文件源码

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

项目:specto 作者: mrknow 项目源码 文件源码
def global_matches(self, text):
        """Compute matches when text is a simple name.

        Return a list of all keywords, built-in functions and names currently
        defined in self.namespace or self.global_namespace that match.

        """


        def get_item(obj, attr):
            return obj[attr]

        a = {}

        for dict_with_comps in [__builtin__.__dict__, self.namespace, self.global_namespace]: #@UndefinedVariable
            a.update(dict_with_comps)

        filter = _StartsWithFilter(text)

        return dir2(a, a.keys(), get_item, filter)
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号