rlcompleter2.py 文件源码

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

项目:pyshell 作者: oglops 项目源码 文件源码
def TypeView(self, name, obj):
        """ return a Type-specific view which is never used
            for unqiue (final) completion.
        """
        if not keyword.iskeyword(name) and self.config.typesize:
            if inspect.isclass(obj) and issubclass(obj, Exception):
                name='<exc>%s' % name
            elif type(obj) in self.abbdict:
                name='<%s>%s' % (self.abbdict[type(obj)], name)

            if callable(obj):
                name=name+format_callable_signature(obj)
        return name
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号