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

Method read

Lib/_pyio.py:1903–1911  ·  view source on GitHub ↗

Read at most size characters from stream, where size is an int. Read from underlying buffer until we have size characters or we hit EOF. If size is negative or omitted, read until EOF. Returns a string.

(self, size=-1)

Source from the content-addressed store, hash-verified

1901 """
1902
1903 def read(self, size=-1):
1904 """Read at most size characters from stream, where size is an int.
1905
1906 Read from underlying buffer until we have size characters or we hit EOF.
1907 If size is negative or omitted, read until EOF.
1908
1909 Returns a string.
1910 """
1911 self._unsupported("read")
1912
1913 def write(self, s):
1914 """Write string s to stream and returning an int."""

Callers

nothing calls this directly

Calls 1

_unsupportedMethod · 0.80

Tested by

no test coverage detected