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

Method new_mod

Lib/test/test_interpreters/test_api.py:1398–1399  ·  view source on GitHub ↗
(name, text)

Source from the content-addressed store, hash-verified

1396
1397 with os_helper.temp_dir() as tempdir:
1398 def new_mod(name, text):
1399 script_helper.make_script(tempdir, name, dedent(text))
1400
1401 def run(text):
1402 name = 'myscript'

Callers

nothing calls this directly

Calls 2

dedentFunction · 0.90
make_scriptMethod · 0.45

Tested by

no test coverage detected