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
评论列表
文章目录