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