Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ locate
Method
locate
Lib/importlib/metadata/__init__.py:386–388 ·
view source on GitHub ↗
Return a path-like object for this path
(self)
Source
from the content-addressed store, hash-verified
384
return
self.locate().read_bytes()
385
386
def
locate(self) -> SimplePath:
387
""
"Return a path-like object for this path"
""
388
return
self.dist.locate_file(self)
389
390
391
class
FileHash:
Callers
5
read_text
Method · 0.95
read_binary
Method · 0.95
_test_files
Method · 0.80
test_builtin
Method · 0.80
skip_missing_files
Method · 0.80
Calls
1
locate_file
Method · 0.45
Tested by
2
_test_files
Method · 0.64
test_builtin
Method · 0.64