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

Method peek

Lib/gzip.py:370–373  ·  view source on GitHub ↗
(self, n)

Source from the content-addressed store, hash-verified

368 return self._buffer.readinto1(b)
369
370 def peek(self, n):
371 self._check_not_closed()
372 self._check_read("peek")
373 return self._buffer.peek(n)
374
375 @property
376 def closed(self):

Callers

nothing calls this directly

Calls 2

_check_readMethod · 0.95
_check_not_closedMethod · 0.80

Tested by

no test coverage detected