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