Get object info about oname
(self, oname, detail_level=0)
| 1764 | return 'not found' # so callers can take other action |
| 1765 | |
| 1766 | def object_inspect(self, oname, detail_level=0): |
| 1767 | """Get object info about oname""" |
| 1768 | with self.builtin_trap: |
| 1769 | info = self._object_find(oname) |
| 1770 | if info.found: |
| 1771 | return self.inspector.info(info.obj, oname, info=info, |
| 1772 | detail_level=detail_level |
| 1773 | ) |
| 1774 | else: |
| 1775 | return oinspect.object_info(name=oname, found=False) |
| 1776 | |
| 1777 | def object_inspect_text(self, oname, detail_level=0): |
| 1778 | """Get object info as formatted text""" |