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

Function run

Lib/test/test__interpreters.py:56–61  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

54def _running(interp):
55 r, w = os.pipe()
56 def run():
57 _interpreters.run_string(interp, dedent(f"""
58 # wait for "signal"
59 with open({r}, encoding="utf-8") as rpipe:
60 rpipe.read()
61 """))
62
63 t = threading.Thread(target=run)
64 t.start()

Calls 1

dedentFunction · 0.90

Tested by

no test coverage detected