##// END OF EJS Templates
Merge pull request #12627 from impact27/patch-8
Matthias Bussonnier -
r26176:a0cd6206 merge
parent child Browse files
Show More
@@ -613,48 +613,60 b' class Pdb(OldPdb):'
613 613 """Print the call signature for any callable object.
614 614
615 615 The debugger interface to %pdef"""
616 namespaces = [('Locals', self.curframe.f_locals),
617 ('Globals', self.curframe.f_globals)]
618 self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
616 namespaces = [
617 ("Locals", self.curframe_locals),
618 ("Globals", self.curframe.f_globals),
619 ]
620 self.shell.find_line_magic("pdef")(arg, namespaces=namespaces)
619 621
620 622 def do_pdoc(self, arg):
621 623 """Print the docstring for an object.
622 624
623 625 The debugger interface to %pdoc."""
624 namespaces = [('Locals', self.curframe.f_locals),
625 ('Globals', self.curframe.f_globals)]
626 self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
626 namespaces = [
627 ("Locals", self.curframe_locals),
628 ("Globals", self.curframe.f_globals),
629 ]
630 self.shell.find_line_magic("pdoc")(arg, namespaces=namespaces)
627 631
628 632 def do_pfile(self, arg):
629 633 """Print (or run through pager) the file where an object is defined.
630 634
631 635 The debugger interface to %pfile.
632 636 """
633 namespaces = [('Locals', self.curframe.f_locals),
634 ('Globals', self.curframe.f_globals)]
635 self.shell.find_line_magic('pfile')(arg, namespaces=namespaces)
637 namespaces = [
638 ("Locals", self.curframe_locals),
639 ("Globals", self.curframe.f_globals),
640 ]
641 self.shell.find_line_magic("pfile")(arg, namespaces=namespaces)
636 642
637 643 def do_pinfo(self, arg):
638 644 """Provide detailed information about an object.
639 645
640 646 The debugger interface to %pinfo, i.e., obj?."""
641 namespaces = [('Locals', self.curframe.f_locals),
642 ('Globals', self.curframe.f_globals)]
643 self.shell.find_line_magic('pinfo')(arg, namespaces=namespaces)
647 namespaces = [
648 ("Locals", self.curframe_locals),
649 ("Globals", self.curframe.f_globals),
650 ]
651 self.shell.find_line_magic("pinfo")(arg, namespaces=namespaces)
644 652
645 653 def do_pinfo2(self, arg):
646 654 """Provide extra detailed information about an object.
647 655
648 656 The debugger interface to %pinfo2, i.e., obj??."""
649 namespaces = [('Locals', self.curframe.f_locals),
650 ('Globals', self.curframe.f_globals)]
651 self.shell.find_line_magic('pinfo2')(arg, namespaces=namespaces)
657 namespaces = [
658 ("Locals", self.curframe_locals),
659 ("Globals", self.curframe.f_globals),
660 ]
661 self.shell.find_line_magic("pinfo2")(arg, namespaces=namespaces)
652 662
653 663 def do_psource(self, arg):
654 664 """Print (or run through pager) the source code for an object."""
655 namespaces = [('Locals', self.curframe.f_locals),
656 ('Globals', self.curframe.f_globals)]
657 self.shell.find_line_magic('psource')(arg, namespaces=namespaces)
665 namespaces = [
666 ("Locals", self.curframe_locals),
667 ("Globals", self.curframe.f_globals),
668 ]
669 self.shell.find_line_magic("psource")(arg, namespaces=namespaces)
658 670
659 671 def do_where(self, arg):
660 672 """w(here)
General Comments 0
You need to be logged in to leave comments. Login now