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

Method flush_buf

Lib/_pyrepl/base_eventqueue.py:57–63  ·  view source on GitHub ↗

Flushes the buffer and returns its contents.

(self)

Source from the content-addressed store, hash-verified

55 return not self.events
56
57 def flush_buf(self) -> bytearray:
58 """
59 Flushes the buffer and returns its contents.
60 """
61 old = self.buf
62 self.buf = bytearray()
63 return old
64
65 def insert(self, event: Event) -> None:
66 """

Callers 3

pushMethod · 0.95
test_flush_bufMethod · 0.80

Calls

no outgoing calls

Tested by 2

test_flush_bufMethod · 0.64