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

Method read

Lib/gzip.py:346–349  ·  view source on GitHub ↗
(self, size=-1)

Source from the content-addressed store, hash-verified

344 raise OSError(errno.EBADF, msg)
345
346 def read(self, size=-1):
347 self._check_not_closed()
348 self._check_read("read")
349 return self._buffer.read(size)
350
351 def read1(self, size=-1):
352 """Implements BufferedIOBase.read1()

Callers 10

mainFunction · 0.95
test_read_largeMethod · 0.95
open_urlresourceFunction · 0.95
readMethod · 0.45
_read_exactFunction · 0.45
_read_gzip_headerFunction · 0.45
readMethod · 0.45
_read_eofMethod · 0.45

Calls 2

_check_readMethod · 0.95
_check_not_closedMethod · 0.80

Tested by 3

test_read_largeMethod · 0.76