MCPcopy 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_pagerFunction · 0.85

Calls 2

readMethod · 0.45
readlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…