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

def do_pinfo2(self, arg):

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