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

Method read

Lib/_pyio.py:1879–1887  ·  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

1877 """
1878
1879 def read(self, size=-1):
1880 """Read at most size characters from stream, where size is an int.
1881
1882 Read from underlying buffer until we have size characters or we hit EOF.
1883 If size is negative or omitted, read until EOF.
1884
1885 Returns a string.
1886 """
1887 self._unsupported("read")
1888
1889 def write(self, s):
1890 """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