Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bedroombuilds/python2rust
/ bytes_from_file
Function
bytes_from_file
0d_files/python/binary.py:5–6 ·
view source on GitHub ↗
(filename)
Source
from the content-addressed store, hash-verified
3
4
5
def
bytes_from_file(filename):
6
return
bytearray(Path(filename).read_bytes())
7
8
9
if
__name__ ==
"__main__"
:
Callers
1
binary.py
File · 0.70
Calls
no outgoing calls
Tested by
no test coverage detected