Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ _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
78
def
_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_binary
Function · 0.85
open_text
Function · 0.85
read_binary
Function · 0.85
read_text
Function · 0.85
path
Function · 0.85
is_resource
Function · 0.85
contents
Function · 0.85
Calls
2
files
Function · 0.70
joinpath
Method · 0.45
Tested by
no test coverage detected