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

Function _get_resource

Lib/importlib/resources/_functional.py:78–81  ·  view source on GitHub ↗
(anchor, path_names)

Source from the content-addressed store, hash-verified

76
77
78def _get_resource(anchor, path_names):
79 if anchor is None:
80 raise TypeError("anchor must be module or string, got None")
81 return files(anchor).joinpath(*path_names)

Callers 7

open_binaryFunction · 0.85
open_textFunction · 0.85
read_binaryFunction · 0.85
read_textFunction · 0.85
pathFunction · 0.85
is_resourceFunction · 0.85
contentsFunction · 0.85

Calls 2

filesFunction · 0.70
joinpathMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…