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

Method readinto

Lib/_pyio.py:636–642  ·  view source on GitHub ↗

Read bytes into a pre-allocated bytes-like object b. Returns an int representing the number of bytes read (0 for EOF), or None if the object is set not to block and has no data to read.

(self, b)

Source from the content-addressed store, hash-verified

634 return data
635
636 def readinto(self, b):
637 """Read bytes into a pre-allocated bytes-like object b.
638
639 Returns an int representing the number of bytes read (0 for EOF), or
640 None if the object is set not to block and has no data to read.
641 """
642 self._unsupported("readinto")
643
644 def write(self, b):
645 """Write the given buffer to the IO stream.

Callers 1

readMethod · 0.95

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected