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

Function read_binary

Lib/importlib/resources/_functional.py:23–25  ·  view source on GitHub ↗

Read and return contents of *resource* within *package* as bytes.

(anchor, *path_names)

Source from the content-addressed store, hash-verified

21
22
23def read_binary(anchor, *path_names):
24 """Read and return contents of *resource* within *package* as bytes."""
25 return _get_resource(anchor, path_names).read_bytes()
26
27
28def read_text(anchor, *path_names, encoding=_MISSING, errors='strict'):

Callers

nothing calls this directly

Calls 2

_get_resourceFunction · 0.85
read_bytesMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…