Show More
@@ -477,19 +477,25 b' class Pdb(OldPdb):' | |||
|
477 | 477 | do_l = do_list |
|
478 | 478 | |
|
479 | 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 | 483 | namespaces = [('Locals', self.curframe.f_locals), |
|
482 | 484 | ('Globals', self.curframe.f_globals)] |
|
483 | 485 | self.shell.find_line_magic('pdef')(arg, namespaces=namespaces) |
|
484 | 486 | |
|
485 | 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 | 491 | namespaces = [('Locals', self.curframe.f_locals), |
|
488 | 492 | ('Globals', self.curframe.f_globals)] |
|
489 | 493 | self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces) |
|
490 | 494 | |
|
491 | 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 | 499 | namespaces = [('Locals', self.curframe.f_locals), |
|
494 | 500 | ('Globals', self.curframe.f_globals)] |
|
495 | 501 | self.shell.find_line_magic('pinfo')("pinfo %s" % arg, |
General Comments 0
You need to be logged in to leave comments.
Login now