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

Function execfile

IPython/utils/py3compat.py:53–58  ·  view source on GitHub ↗
(fname, glob, loc=None, compiler=None)

Source from the content-addressed store, hash-verified

51
52
53def execfile(fname, glob, loc=None, compiler=None):
54 __tracebackhide__ = "__ipython_bottom__"
55 loc = loc if (loc is not None) else glob
56 with open(fname, "rb") as f:
57 compiler = compiler or compile
58 exec(compiler(f.read(), fname, "exec"), glob, loc)
59
60
61PYPY = platform.python_implementation() == "PyPy"

Callers

nothing calls this directly

Calls 1

readMethod · 0.80

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…