MCPcopy Create free account
hub / github.com/RT-Thread/env-windows / read

Method read

tools/python-3.11.9-amd64/Lib/_pyio.py:1843–1851  ·  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

1841 """
1842
1843 def read(self, size=-1):
1844 """Read at most size characters from stream, where size is an int.
1845
1846 Read from underlying buffer until we have size characters or we hit EOF.
1847 If size is negative or omitted, read until EOF.
1848
1849 Returns a string.
1850 """
1851 self._unsupported("read")
1852
1853 def write(self, s):
1854 """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