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

Method push_char

Lib/_pyrepl/unix_console.py:402–407  ·  view source on GitHub ↗

Push a character to the console event queue.

(self, char: int | bytes)

Source from the content-addressed store, hash-verified

400 del self.old_sigwinch
401
402 def push_char(self, char: int | bytes) -> None:
403 """
404 Push a character to the console event queue.
405 """
406 trace("push char {char!r}", char=char)
407 self.event_queue.push(char)
408
409 def get_event(self, block: bool = True) -> Event | None:
410 """

Callers 1

get_eventMethod · 0.95

Calls 2

traceFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected