'Provide detailed information about an object.
The debugger interface to %pinfo, i.e., obj?.'

def do_pinfo(self, arg):

    namespaces = [('Locals', self.curframe.f_locals), ('Globals', self.curframe.f_globals)]
    self.shell.find_line_magic('pinfo')(arg, namespaces=namespaces)
