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

Method do_pfile

IPython/core/debugger.py:622–629  ·  view source on GitHub ↗

Print (or run through pager) the file where an object is defined. The debugger interface to %pfile.

(self, arg)

Source from the content-addressed store, hash-verified

620 self.shell.find_line_magic('pdoc')(arg, namespaces=namespaces)
621
622 def do_pfile(self, arg):
623 """Print (or run through pager) the file where an object is defined.
624
625 The debugger interface to %pfile.
626 """
627 namespaces = [('Locals', self.curframe.f_locals),
628 ('Globals', self.curframe.f_globals)]
629 self.shell.find_line_magic('pfile')(arg, namespaces=namespaces)
630
631 def do_pinfo(self, arg):
632 """Provide detailed information about an object.

Callers

nothing calls this directly

Calls 1

find_line_magicMethod · 0.80

Tested by

no test coverage detected