MCPcopy Index your code
hub / github.com/RustPython/RustPython / byteslike

Function byteslike

Lib/test/test_io.py:54–55  ·  view source on GitHub ↗
(*pos, **kw)

Source from the content-addressed store, hash-verified

52 import ctypes
53except ImportError:
54 def byteslike(*pos, **kw):
55 return array.array("b", bytes(*pos, **kw))
56else:
57 def byteslike(*pos, **kw):
58 """Create a bytes-like object having no string or sequence methods"""

Callers 3

read_opsMethod · 0.85
test_readintoMethod · 0.85

Calls 4

lenFunction · 0.85
EmptyStructClass · 0.70
resizeMethod · 0.45
castMethod · 0.45

Tested by

no test coverage detected