Print the docstring for an object. The debugger interface to %pdoc.
(self, arg)
| 1011 | self.shell.find_line_magic("pdef")(arg, namespaces=namespaces) |
| 1012 | |
| 1013 | def do_pdoc(self, arg): |
| 1014 | """Print the docstring for an object. |
| 1015 | |
| 1016 | The debugger interface to %pdoc.""" |
| 1017 | assert self.curframe is not None |
| 1018 | namespaces = [ |
| 1019 | ("Locals", self.curframe_locals), |
| 1020 | ("Globals", self.curframe.f_globals), |
| 1021 | ] |
| 1022 | self.shell.find_line_magic("pdoc")(arg, namespaces=namespaces) |
| 1023 | |
| 1024 | def do_pfile(self, arg): |
| 1025 | """Print (or run through pager) the file where an object is defined. |
nothing calls this directly
no test coverage detected