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

Method readinto

Lib/_pyio.py:1723–1730  ·  view source on GitHub ↗

Same as RawIOBase.readinto().

(self, buffer)

Source from the content-addressed store, hash-verified

1721 return bytes(result)
1722
1723 def readinto(self, buffer):
1724 """Same as RawIOBase.readinto()."""
1725 self._checkClosed()
1726 self._checkReadable()
1727 try:
1728 return os.readinto(self._fd, buffer)
1729 except BlockingIOError:
1730 return None
1731
1732 def write(self, b):
1733 """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