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

Method read_bytes

Lib/pathlib/__init__.py:971–976  ·  view source on GitHub ↗

Open the file in bytes mode, read it, and close the file.

(self)

Source from the content-addressed store, hash-verified

969 return io.open(self, mode, buffering, encoding, errors, newline)
970
971 def read_bytes(self):
972 """
973 Open the file in bytes mode, read it, and close the file.
974 """
975 with self.open(mode='rb', buffering=0) as f:
976 return f.read()
977
978 def read_text(self, encoding=None, errors=None, newline=None):
979 """

Callers 15

prepare_wasmFunction · 0.45
configure_build_pythonFunction · 0.45
clean_contentsFunction · 0.45
_load_templatesMethod · 0.45
__enter__Method · 0.45
test_getpath.pyFile · 0.45
test_read_bytesMethod · 0.45
test_spec_path_openMethod · 0.45
test_child_path_openMethod · 0.45
test_orphan_path_openMethod · 0.45

Calls 2

openMethod · 0.95
readMethod · 0.45

Tested by 15

__enter__Method · 0.36
test_read_bytesMethod · 0.36
test_spec_path_openMethod · 0.36
test_child_path_openMethod · 0.36
test_orphan_path_openMethod · 0.36
executeMethod · 0.36
test_read_bytesMethod · 0.36