MCPcopy Index your code
hub / github.com/python/cpython / _run_interp

Function _run_interp

Lib/test/test__interpchannels.py:62–72  ·  view source on GitHub ↗
(id, source, shared, _mainns={})

Source from the content-addressed store, hash-verified

60
61
62def _run_interp(id, source, shared, _mainns={}):
63 source = dedent(source)
64 main, *_ = _interpreters.get_main()
65 if main == id:
66 cur, *_ = _interpreters.get_current()
67 if cur != main:
68 raise RuntimeError
69 # XXX Run a func?
70 exec(source, _mainns)
71 else:
72 _interpreters.run_string(id, source, shared)
73
74
75class Interpreter(namedtuple('Interpreter', 'name id')):

Callers 1

run_interpFunction · 0.85

Calls 1

dedentFunction · 0.90

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…