Print the call signature for any callable object. The debugger interface to %pdef
(self, arg)
| 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. |
nothing calls this directly
no test coverage detected