MCPcopy Create free account
hub / github.com/ipython/ipython / do_psource

Method do_psource

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

645 self.shell.find_line_magic('pinfo2')(arg, namespaces=namespaces)
646
647 def do_psource(self, arg):
648 """Print (or run through pager) the source code for an object."""
649 namespaces = [('Locals', self.curframe.f_locals),
650 ('Globals', self.curframe.f_globals)]
651 self.shell.find_line_magic('psource')(arg, namespaces=namespaces)
652
653 def do_where(self, arg):
654 """w(here)

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected