Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ peek
Method
peek
Lib/_pyio.py:1465–1467 ·
view source on GitHub ↗
(self, size=0)
Source
from the content-addressed store, hash-verified
1463
return
BufferedReader.readinto(self, b)
1464
1465
def
peek(self, size=0):
1466
self.flush()
1467
return
BufferedReader.peek(self, size)
1468
1469
def
read1(self, size=-1):
1470
self.flush()
Callers
nothing calls this directly
Calls
2
flush
Method · 0.45
peek
Method · 0.45
Tested by
no test coverage detected