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

Method forgetinput

Lib/_pyrepl/windows_console.py:519–522  ·  view source on GitHub ↗

Forget all pending, but not yet processed input.

(self)

Source from the content-addressed store, hash-verified

517 pass
518
519 def forgetinput(self) -> None:
520 """Forget all pending, but not yet processed input."""
521 if not FlushConsoleInputBuffer(InHandle):
522 raise WinError(get_last_error())
523
524 def getpending(self) -> Event:
525 """Return the characters that have been typed but not yet

Callers

nothing calls this directly

Calls 2

WinErrorFunction · 0.90
get_last_errorFunction · 0.85

Tested by

no test coverage detected