MCPcopy Index your code
hub / github.com/python/cpython / readinto

Method readinto

Lib/_pyio.py:1744–1751  ·  view source on GitHub ↗

Same as RawIOBase.readinto().

(self, buffer)

Source from the content-addressed store, hash-verified

1742 return result.take_bytes()
1743
1744 def readinto(self, buffer):
1745 """Same as RawIOBase.readinto()."""
1746 self._checkClosed()
1747 self._checkReadable()
1748 try:
1749 return os.readinto(self._fd, buffer)
1750 except BlockingIOError:
1751 return None
1752
1753 def write(self, b):
1754 """Write bytes b to file, return number written.

Callers 4

_readintoMethod · 0.45
readintoMethod · 0.45
readintoMethod · 0.45
readallMethod · 0.45

Calls 2

_checkReadableMethod · 0.95
_checkClosedMethod · 0.45

Tested by

no test coverage detected