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

Method create_ns

Lib/test/test_runpy.py:615–616  ·  view source on GitHub ↗
(init_globals)

Source from the content-addressed store, hash-verified

613 expect_spec=True, check_loader=True):
614 # First check is without run_name
615 def create_ns(init_globals):
616 return run_path(script_name, init_globals)
617 expected_ns = example_namespace.copy()
618 if mod_name is None:
619 spec_name = expected_name

Callers

nothing calls this directly

Calls 1

run_pathFunction · 0.90

Tested by

no test coverage detected