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

Method _read

Lib/mailbox.py:2119–2126  ·  view source on GitHub ↗

Read size bytes using read_method, honoring start and stop.

(self, size, read_method)

Source from the content-addressed store, hash-verified

2117 _ProxyFile.seek(self, offset, whence)
2118
2119 def _read(self, size, read_method):
2120 """Read size bytes using read_method, honoring start and stop."""
2121 remaining = self._stop - self._pos
2122 if remaining <= 0:
2123 return b''
2124 if size is None or size < 0 or size > remaining:
2125 size = remaining
2126 return _ProxyFile._read(self, size, read_method)
2127
2128 def close(self):
2129 # do *not* close the underlying file object for partial files,

Callers

nothing calls this directly

Calls 1

_readMethod · 0.45

Tested by

no test coverage detected