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

Function write_output

Modules/_decimal/tests/deccheck.py:1284–1290  ·  view source on GitHub ↗
(out, returncode)

Source from the content-addressed store, hash-verified

1282 write_lock = Lock()
1283
1284 def write_output(out, returncode):
1285 if returncode != 0:
1286 error.set()
1287
1288 with write_lock:
1289 sys.stdout.buffer.write(out + b"\n")
1290 sys.stdout.buffer.flush()
1291
1292 def tfunc():
1293 while not error.is_set():

Callers 1

tfuncFunction · 0.70

Calls 3

setMethod · 0.45
writeMethod · 0.45
flushMethod · 0.45

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…