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

Function reader

Lib/test/test_profiling/test_sampling_profiler/test_children.py:68–72  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

66 exception = [None]
67
68 def reader():
69 try:
70 result[0] = file_obj.readline()
71 except Exception as e:
72 exception[0] = e
73
74 thread = threading.Thread(target=reader, daemon=True)
75 thread.start()

Callers 13

__init__Method · 0.85
has_headerMethod · 0.85
test_only_one_bomMethod · 0.85
test_only_one_bomMethod · 0.85
test_stream_bomMethod · 0.85
test_stream_bareMethod · 0.85
test_func_15Method · 0.85
test_readlineMethod · 0.85
test_write_pipeMethod · 0.85
test_write_ptyMethod · 0.85
get_resource_readerFunction · 0.85

Calls 1

readlineMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…