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

Method do_psource

IPython/core/debugger.py:1058–1065  ·  view source on GitHub ↗

Print (or run through pager) the source code for an object.

(self, arg)

Source from the content-addressed store, hash-verified

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)

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected