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

Function resolve_stdlib_file

Lib/test/test_importlib/frozen/test_finder.py:11–16  ·  view source on GitHub ↗
(name, ispkg=False)

Source from the content-addressed store, hash-verified

9
10
11def resolve_stdlib_file(name, ispkg=False):
12 assert name
13 if ispkg:
14 return os.path.join(STDLIB_DIR, *name.split('.'), '__init__.py')
15 else:
16 return os.path.join(STDLIB_DIR, *name.split('.')) + '.py'
17
18
19class FindSpecTests(abc.FinderTests):

Callers 3

check_loader_stateMethod · 0.70
test_moduleMethod · 0.70
test_packageMethod · 0.70

Calls 2

joinMethod · 0.45
splitMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…