##// END OF EJS Templates
Clean up ipdb docstrings for namespace magics.
Bradley M. Froehle -
Show More
@@ -477,19 +477,25 b' class Pdb(OldPdb):'
477 do_l = do_list
477 do_l = do_list
478
478
479 def do_pdef(self, arg):
479 def do_pdef(self, arg):
480 """The debugger interface to magic_pdef"""
480 """Print the definition header for any callable object.
481
482 The debugger interface to %pdef"""
481 namespaces = [('Locals', self.curframe.f_locals),
483 namespaces = [('Locals', self.curframe.f_locals),
482 ('Globals', self.curframe.f_globals)]
484 ('Globals', self.curframe.f_globals)]
483 self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
485 self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
484
486
485 def do_pdoc(self, arg):
487 def do_pdoc(self, arg):
486 """The debugger interface to magic_pdoc"""
488 """Print the docstring for an object.
489
490 The debugger interface to %pdoc."""
487 namespaces = [('Locals', self.curframe.f_locals),
491 namespaces = [('Locals', self.curframe.f_locals),
488 ('Globals', self.curframe.f_globals)]
492 ('Globals', self.curframe.f_globals)]
489 self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
493 self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
490
494
491 def do_pinfo(self, arg):
495 def do_pinfo(self, arg):
492 """The debugger equivalant of ?obj"""
496 """Provide detailed information about an object.
497
498 The debugger interface to %pinfo, i.e., obj?."""
493 namespaces = [('Locals', self.curframe.f_locals),
499 namespaces = [('Locals', self.curframe.f_locals),
494 ('Globals', self.curframe.f_globals)]
500 ('Globals', self.curframe.f_globals)]
495 self.shell.find_line_magic('pinfo')("pinfo %s" % arg,
501 self.shell.find_line_magic('pinfo')("pinfo %s" % arg,
General Comments 0
You need to be logged in to leave comments. Login now