Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ readbytes
Method
readbytes
Lib/test/test_pathlib/support/zip_path.py:69–71 ·
view source on GitHub ↗
(self, p)
Source
from the content-addressed store, hash-verified
67
return
f.read()
68
69
def
readbytes(self, p):
70
with
p.zip_file.open(str(p),
'r'
)
as
f:
71
return
f.read()
72
73
readlink = readtext
74
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
str
Function · 0.85
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