Show More
@@ -658,6 +658,9 b' class Inspector(Colorable):' | |||||
658 |
|
658 | |||
659 | else: |
|
659 | else: | |
660 | # General Python objects |
|
660 | # General Python objects | |
|
661 | append_field(_mime, 'Signature', 'definition', code_formatter) | |||
|
662 | append_field(_mime, 'Call signature', 'call_def', code_formatter) | |||
|
663 | ||||
661 | append_field(_mime, 'Type', 'type_name') |
|
664 | append_field(_mime, 'Type', 'type_name') | |
662 |
|
665 | |||
663 | # Base class for old-style instances |
|
666 | # Base class for old-style instances | |
@@ -671,8 +674,7 b' class Inspector(Colorable):' | |||||
671 | append_field(_mime, 'Namespace', 'namespace') |
|
674 | append_field(_mime, 'Namespace', 'namespace') | |
672 |
|
675 | |||
673 | append_field(_mime, 'Length', 'length') |
|
676 | append_field(_mime, 'Length', 'length') | |
674 |
append_field(_mime, 'File', 'file') |
|
677 | append_field(_mime, 'File', 'file') | |
675 | append_field(_mime, 'Signature', 'definition', code_formatter) |
|
|||
676 |
|
678 | |||
677 | # Source or docstring, depending on detail level and whether |
|
679 | # Source or docstring, depending on detail level and whether | |
678 | # source found. |
|
680 | # source found. | |
@@ -683,11 +685,9 b' class Inspector(Colorable):' | |||||
683 |
|
685 | |||
684 | append_field(_mime, 'Class docstring', 'class_docstring', formatter) |
|
686 | append_field(_mime, 'Class docstring', 'class_docstring', formatter) | |
685 | append_field(_mime, 'Init docstring', 'init_docstring', formatter) |
|
687 | append_field(_mime, 'Init docstring', 'init_docstring', formatter) | |
686 | append_field(_mime, 'Call signature', 'call_def', code_formatter) |
|
|||
687 | append_field(_mime, 'Call docstring', 'call_docstring', formatter) |
|
688 | append_field(_mime, 'Call docstring', 'call_docstring', formatter) | |
688 |
|
689 | |||
689 |
|
690 | |||
690 |
|
||||
691 | return self.format_mime(_mime) |
|
691 | return self.format_mime(_mime) | |
692 |
|
692 | |||
693 | def pinfo(self, obj, oname='', formatter=None, info=None, detail_level=0, enable_html_pager=True): |
|
693 | def pinfo(self, obj, oname='', formatter=None, info=None, detail_level=0, enable_html_pager=True): |
General Comments 0
You need to be logged in to leave comments.
Login now