def _inspect(self, meth, oname, namespaces=None, **kw):
    'Generic interface to the inspector system.\n\n        This function is meant to be called by pdef, pdoc & friends.\n        '
    info = self._object_find(oname, namespaces)
    docformat = (sphinxify(self.object_inspect(oname)) if self.sphinxify_docstring else None)
    if info.found:
        pmethod = getattr(self.inspector, meth)
        formatter = (format_screen if info.ismagic else docformat)
        if (meth == 'pdoc'):
            pmethod(info.obj, oname, formatter)
        elif (meth == 'pinfo'):
            pmethod(info.obj, oname, formatter, info, enable_html_pager=self.enable_html_pager, **kw)
        else:
            pmethod(info.obj, oname)
    else:
        print(('Object `%s` not found.' % oname))
        return 'not found'
Generic interface to the inspector system.

This function is meant to be called by pdef, pdoc & friends.
def _inspect(self, meth, oname, namespaces=None, **kw):
    'Generic interface to the inspector system.\n\n        This function is meant to be called by pdef, pdoc & friends.\n        '
    info = self._object_find(oname, namespaces)
    docformat = (sphinxify(self.object_inspect(oname)) if self.sphinxify_docstring else None)
    if info.found:
        pmethod = getattr(self.inspector, meth)
        formatter = (format_screen if info.ismagic else docformat)
        if (meth == 'pdoc'):
            pmethod(info.obj, oname, formatter)
        elif (meth == 'pinfo'):
            pmethod(info.obj, oname, formatter, info, enable_html_pager=self.enable_html_pager, **kw)
        else:
            pmethod(info.obj, oname)
    else:
        print(('Object `%s` not found.' % oname))
        return 'not found'