MCPcopy Create free account
hub / github.com/ipython/ipython / do_pdef

Method do_pdef

IPython/core/debugger.py:606–612  ·  view source on GitHub ↗

Print the call signature for any callable object. The debugger interface to %pdef

(self, arg)

Source from the content-addressed store, hash-verified

604 self.lastcmd = p.lastcmd
605
606 def do_pdef(self, arg):
607 """Print the call signature for any callable object.
608
609 The debugger interface to %pdef"""
610 namespaces = [('Locals', self.curframe.f_locals),
611 ('Globals', self.curframe.f_globals)]
612 self.shell.find_line_magic('pdef')(arg, namespaces=namespaces)
613
614 def do_pdoc(self, arg):
615 """Print the docstring for an object.

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected