MCPcopy 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
12except ImportError:
13 def byteslike(*pos, **kw):
14 return array.array("b", bytes(*pos, **kw))
15else:
16 class EmptyStruct(ctypes.Structure):
17 pass

Callers 3

test_readintoMethod · 0.85
read_opsMethod · 0.85

Calls 3

castMethod · 0.80
EmptyStructClass · 0.70
resizeMethod · 0.45

Tested by 3

test_readintoMethod · 0.68
read_opsMethod · 0.68

Used in the wild real call sites across dependent graphs

searching dependent graphs…