MCPcopy Index your code
hub / github.com/RustPython/RustPython / push_char

Method push_char

Lib/_pyrepl/unix_console.py:383–388  ·  view source on GitHub ↗

Push a character to the console event queue.

(self, char: int | bytes)

Source from the content-addressed store, hash-verified

381 del self.old_sigwinch
382
383 def push_char(self, char: int | bytes) -> None:
384 """
385 Push a character to the console event queue.
386 """
387 trace("push char {char!r}", char=char)
388 self.event_queue.push(char)
389
390 def get_event(self, block: bool = True) -> Event | None:
391 """

Callers 1

get_eventMethod · 0.95

Calls 2

traceFunction · 0.90
pushMethod · 0.45

Tested by

no test coverage detected