Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/RustPython/RustPython
/ test_array_frombytes
Function
test_array_frombytes
extra_tests/snippets/stdlib_array.py:93–97 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
91
92
93
def
test_array_frombytes():
94
a = array(
"b"
, [-1, -2])
95
b = bytearray(a.tobytes())
96
c = array(
"b"
, b)
97
assert a == c
98
99
100
test_array_frombytes()
Callers
1
stdlib_array.py
File · 0.85
Calls
2
array
Class · 0.85
tobytes
Method · 0.45
Tested by
no test coverage detected