##// END OF EJS Templates
Split pinfo into pinfo, pinfo2....
Bradley M. Froehle -
Show More
@@ -507,8 +507,15 b' class Pdb(OldPdb):'
507 The debugger interface to %pinfo, i.e., obj?."""
507 The debugger interface to %pinfo, i.e., obj?."""
508 namespaces = [('Locals', self.curframe.f_locals),
508 namespaces = [('Locals', self.curframe.f_locals),
509 ('Globals', self.curframe.f_globals)]
509 ('Globals', self.curframe.f_globals)]
510 self.shell.find_line_magic('pinfo')("pinfo %s" % arg,
510 self.shell.find_line_magic('pinfo')(arg, namespaces=namespaces)
511 namespaces=namespaces)
511
512 def do_pinfo2(self, arg):
513 """Provide extra detailed information about an object.
514
515 The debugger interface to %pinfo2, i.e., obj??."""
516 namespaces = [('Locals', self.curframe.f_locals),
517 ('Globals', self.curframe.f_globals)]
518 self.shell.find_line_magic('pinfo2')(arg, namespaces=namespaces)
512
519
513 def do_psource(self, arg):
520 def do_psource(self, arg):
514 """Print (or run through pager) the source code for an object."""
521 """Print (or run through pager) the source code for an object."""
General Comments 0
You need to be logged in to leave comments. Login now