MCPcopy Index your code
hub / github.com/ipython/ipython / do_pdef

Method do_pdef

IPython/core/debugger.py:1002–1011  ·  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

1000 self.lastcmd = p.lastcmd
1001
1002 def do_pdef(self, arg):
1003 """Print the call signature for any callable object.
1004
1005 The debugger interface to %pdef"""
1006 assert self.curframe is not None
1007 namespaces = [
1008 ("Locals", self.curframe_locals),
1009 ("Globals", self.curframe.f_globals),
1010 ]
1011 self.shell.find_line_magic("pdef")(arg, namespaces=namespaces)
1012
1013 def do_pdoc(self, arg):
1014 """Print the docstring for an object.

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected