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

Function run

Lib/test/test_interpreters/utils.py:366–371  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

364def _running(interp):
365 r, w = os.pipe()
366 def run():
367 interp.exec(dedent(f"""
368 # wait for "signal"
369 with open({r}) as rpipe:
370 rpipe.read()
371 """))
372
373 t = threading.Thread(target=run)
374 t.start()

Calls 2

dedentFunction · 0.90
execMethod · 0.80