Show detailed information about an object. Optional arguments: - oname: name of the variable pointing to the object. - formatter: callable (optional) A special formatter for docstrings. The formatter is a callable that takes a string as an inpu
(self, obj, oname='', formatter=None, info=None, detail_level=0, enable_html_pager=True)
| 656 | return self.format_mime(_mime) |
| 657 | |
| 658 | def pinfo(self, obj, oname='', formatter=None, info=None, detail_level=0, enable_html_pager=True): |
| 659 | """Show detailed information about an object. |
| 660 | |
| 661 | Optional arguments: |
| 662 | |
| 663 | - oname: name of the variable pointing to the object. |
| 664 | |
| 665 | - formatter: callable (optional) |
| 666 | A special formatter for docstrings. |
| 667 | |
| 668 | The formatter is a callable that takes a string as an input |
| 669 | and returns either a formatted string or a mime type bundle |
| 670 | in the form of a dictionary. |
| 671 | |
| 672 | Although the support of custom formatter returning a string |
| 673 | instead of a mime type bundle is deprecated. |
| 674 | |
| 675 | - info: a structure with some information fields which may have been |
| 676 | precomputed already. |
| 677 | |
| 678 | - detail_level: if set to 1, more information is given. |
| 679 | """ |
| 680 | info = self._get_info(obj, oname, formatter, info, detail_level) |
| 681 | if not enable_html_pager: |
| 682 | del info['text/html'] |
| 683 | page.page(info) |
| 684 | |
| 685 | def info(self, obj, oname='', formatter=None, info=None, detail_level=0): |
| 686 | """DEPRECATED. Compute a dict with detailed information about an object. |