Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/python/cpython
/ flush
Method
flush
Lib/test/test_io/utils.py:137–139 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
135
self.in_flush = threading.Event()
136
137
def
flush(self):
138
self.in_flush.set()
139
time.sleep(0.25)
140
141
class
CSlowFlushRawIO(SlowFlushRawIO, io.RawIOBase):
142
pass
Callers
15
test_source_synopsis
Method · 0.45
test_handle_preload_main_on_error_fail
Method · 0.45
test_handle_preload_main_on_error_warn
Method · 0.45
test_handle_preload_main_on_error_ignore
Method · 0.45
test_handle_preload_main_valid
Method · 0.45
test_handle_preload_combined
Method · 0.45
test_compressor
Method · 0.45
resize_and_flush
Method · 0.45
test_flush
Method · 0.45
test_compressor
Method · 0.45
test_pyfile_newstdprinter
Method · 0.45
sleep_and_print
Function · 0.45
Calls
2
set
Method · 0.45
sleep
Method · 0.45
Tested by
15
test_source_synopsis
Method · 0.36
test_handle_preload_main_on_error_fail
Method · 0.36
test_handle_preload_main_on_error_warn
Method · 0.36
test_handle_preload_main_on_error_ignore
Method · 0.36
test_handle_preload_main_valid
Method · 0.36
test_handle_preload_combined
Method · 0.36
test_compressor
Method · 0.36
resize_and_flush
Method · 0.36
test_flush
Method · 0.36
test_compressor
Method · 0.36
test_pyfile_newstdprinter
Method · 0.36
sleep_and_print
Function · 0.36