MCPcopy Create free account
hub / github.com/ipython/ipython / object_inspect

Method object_inspect

IPython/core/interactiveshell.py:1766–1775  ·  view source on GitHub ↗

Get object info about oname

(self, oname, detail_level=0)

Source from the content-addressed store, hash-verified

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"""

Calls 2

_object_findMethod · 0.95
infoMethod · 0.80