Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ locate
Method
locate
Lib/importlib/metadata/__init__.py:319–321 ·
view source on GitHub ↗
Return a path-like object for this path
(self)
Source
from the content-addressed store, hash-verified
317
return
self.locate().read_bytes()
318
319
def
locate(self) -> SimplePath:
320
""
"Return a path-like object for this path"
""
321
return
self.dist.locate_file(self)
322
323
324
class
FileHash:
Callers
6
read_text
Method · 0.95
read_binary
Method · 0.95
_test_files
Method · 0.80
_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
3
_test_files
Method · 0.64
_test_files
Method · 0.64
test_builtin
Method · 0.64