Print (or run through pager) the source code for an object.
(self, arg)
| 1056 | self.shell.find_line_magic("pinfo2")(arg, namespaces=namespaces) |
| 1057 | |
| 1058 | def do_psource(self, arg): |
| 1059 | """Print (or run through pager) the source code for an object.""" |
| 1060 | assert self.curframe is not None |
| 1061 | namespaces = [ |
| 1062 | ("Locals", self.curframe_locals), |
| 1063 | ("Globals", self.curframe.f_globals), |
| 1064 | ] |
| 1065 | self.shell.find_line_magic("psource")(arg, namespaces=namespaces) |
| 1066 | |
| 1067 | def do_where(self, arg: str): |
| 1068 | """w(here) |
nothing calls this directly
no test coverage detected