MCPcopy Index your code
hub / github.com/numpy/numpy / read

Method read

numpy/lib/tests/test_format.py:405–408  ·  view source on GitHub ↗
(self, size=None)

Source from the content-addressed store, hash-verified

403# BytesIO that reads a random number of bytes at a time
404class BytesIOSRandomSize(BytesIO):
405 def read(self, size=None):
406 import random
407 size = random.randint(1, size)
408 return super().read(size)
409
410
411def roundtrip(arr):

Callers 1

test_memmap_roundtripFunction · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected