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

Function getpath

Lib/test/test_getpath.py:1265–1279  ·  view source on GitHub ↗
(ns, keys)

Source from the content-addressed store, hash-verified

1263
1264
1265def getpath(ns, keys):
1266 before = copy.deepcopy(ns)
1267 failed = True
1268 try:
1269 exec(SOURCE, ns)
1270 failed = False
1271 finally:
1272 if failed:
1273 dump_dict(before, ns)
1274 else:
1275 diff_dict(before, ns)
1276 return {
1277 k: ns['config'].get(k, ns.get(k, ...))
1278 for k in keys
1279 }

Callers 15

test_normal_win32Method · 0.85
test_buildtree_win32Method · 0.85
test_venv_win32Method · 0.85
test_registry_win32Method · 0.85
test_no_dlls_win32Method · 0.85
test_normal_posixMethod · 0.85
test_buildpath_posixMethod · 0.85
test_venv_posixMethod · 0.85

Calls 3

dump_dictFunction · 0.85
diff_dictFunction · 0.85
getMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…