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