Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ byteslike
Function
byteslike
Lib/test/test_io/utils.py:13–14 ·
view source on GitHub ↗
(*pos, **kw)
Source
from the content-addressed store, hash-verified
11
import
ctypes
12
except
ImportError:
13
def
byteslike(*pos, **kw):
14
return
array.array(
"b"
, bytes(*pos, **kw))
15
else
:
16
class
EmptyStruct(ctypes.Structure):
17
pass
Callers
3
test_readinto
Method · 0.85
read_ops
Method · 0.85
test_buffered_readinto_mixin
Method · 0.85
Calls
3
cast
Method · 0.80
EmptyStruct
Class · 0.70
resize
Method · 0.45
Tested by
3
test_readinto
Method · 0.68
read_ops
Method · 0.68
test_buffered_readinto_mixin
Method · 0.68
Used in the wild
real call sites across dependent graphs
searching dependent graphs…