Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ readbytes
Method
readbytes
Lib/test/test_pathlib/support/zip_path.py:70–72 ·
view source on GitHub ↗
(self, p)
Source
from the content-addressed store, hash-verified
68
return
f.read()
69
70
def
readbytes(self, p):
71
with
p.zip_file.open(vfspath(p),
'r'
)
as
f:
72
return
f.read()
73
74
readlink = readtext
75
Callers
8
test_copy_file
Method · 0.45
test_copy_file_empty
Method · 0.45
test_copy_file_to_existing_file
Method · 0.45
test_copy_into
Method · 0.45
test_open_wb
Method · 0.45
test_write_bytes
Method · 0.45
test_write_text
Method · 0.45
test_write_text_with_newlines
Method · 0.45
Calls
3
vfspath
Function · 0.90
open
Method · 0.45
read
Method · 0.45
Tested by
8
test_copy_file
Method · 0.36
test_copy_file_empty
Method · 0.36
test_copy_file_to_existing_file
Method · 0.36
test_copy_into
Method · 0.36
test_open_wb
Method · 0.36
test_write_bytes
Method · 0.36
test_write_text
Method · 0.36
test_write_text_with_newlines
Method · 0.36