def _inspect(self, meth, oname, namespaces=None, **kw):
info = self._object_find(oname, namespaces)<EOL>if info.found:<EOL><INDENT>pmethod = getattr(self.inspector, meth)<EOL>formatter = format_screen if info.ismagic else None<EOL>if meth == '<STR_LIT>':<EOL><INDENT>pmethod(info.obj, oname, formatter)<EOL><DEDENT>elif meth == '<STR_LIT>':<EOL><INDENT>pmethod(info.obj, oname, formatter, info, **kw)<EOL><DEDENT>else:<EOL><INDENT>pmethod(info.obj, oname)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>print('<STR_LIT>' % oname)<EOL>return '<STR_LIT>'<EOL><DEDENT>
Generic interface to the inspector system.

        This function is meant to be called by pdef, pdoc & friends.