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

Method flush_buf

Lib/_pyrepl/unix_eventqueue.py:101–107  ·  view source on GitHub ↗

Flushes the buffer and returns its contents.

(self)

Source from the content-addressed store, hash-verified

99 return not self.events
100
101 def flush_buf(self) -> bytearray:
102 """
103 Flushes the buffer and returns its contents.
104 """
105 old = self.buf
106 self.buf = bytearray()
107 return old
108
109 def insert(self, event: Event) -> None:
110 """

Callers 1

pushMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected