Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ getchar
Function
getchar
Lib/_pyrepl/pager.py:83–84 ·
view source on GitHub ↗
()
Source
from the content-addressed store, hash-verified
81
has_tty = True
82
83
def
getchar() -> str:
84
return
sys.stdin.read(1)
85
86
except
(ImportError, AttributeError, io.UnsupportedOperation):
87
def
getchar() -> str:
Callers
1
tty_pager
Function · 0.85
Calls
2
read
Method · 0.45
readline
Method · 0.45
Tested by
no test coverage detected
Used in the wild
real call sites across dependent graphs
searching dependent graphs…