MCPcopy Create free account
hub / github.com/eshirazi/python-with-braces / peek

Method peek

Lib/_pyio.py:1000–1008  ·  view source on GitHub ↗

Returns buffered bytes without advancing the position. The argument indicates a desired minimal number of bytes; we do at most one raw read to satisfy it. We never return more than self.buffer_size.

(self, n=0)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 3

nreadaheadMethod · 0.45
peekMethod · 0.45
peekMethod · 0.45

Calls 1

_peek_unlockedMethod · 0.95

Tested by

no test coverage detected