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

Method read_bytes

Lib/importlib/resources/abc.py:78–83  ·  view source on GitHub ↗

Read contents of self as bytes

(self)

Source from the content-addressed store, hash-verified

76 """
77
78 def read_bytes(self) -> bytes:
79 """
80 Read contents of self as bytes
81 """
82 with self.open('rb') as strm:
83 return strm.read()
84
85 def read_text(self, encoding: Optional[str] = None) -> str:
86 """

Callers 2

read_binaryFunction · 0.45
_write_contentsFunction · 0.45

Calls 2

openMethod · 0.95
readMethod · 0.45

Tested by

no test coverage detected