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

Method _read_input_bulk

Lib/_pyrepl/windows_console.py:414–422  ·  view source on GitHub ↗
(
        self, n: int
    )

Source from the content-addressed store, hash-verified

412 return rec
413
414 def _read_input_bulk(
415 self, n: int
416 ) -> tuple[ctypes.Array[INPUT_RECORD], int]:
417 rec = (n * INPUT_RECORD)()
418 read = DWORD()
419 if not ReadConsoleInput(InHandle, rec, n, read):
420 raise WinError(get_last_error())
421
422 return rec, read.value
423
424 def get_event(self, block: bool = True) -> Event | None:
425 """Return an Event instance. Returns None if |block| is false

Callers 1

getpendingMethod · 0.95

Calls 2

WinErrorFunction · 0.90
get_last_errorFunction · 0.85

Tested by

no test coverage detected