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

Method write

Lib/test/test_free_threading/test_io.py:36–39  ·  view source on GitHub ↗
(barrier, b, *ignore)

Source from the content-addressed store, hash-verified

34 """Test for segfaults and aborts."""
35
36 def write(barrier, b, *ignore):
37 barrier.wait()
38 try: b.write(b'0' * randint(100, 1000))
39 except ValueError: pass # ignore write fail to closed file
40
41 def writelines(barrier, b, *ignore):
42 barrier.wait()

Callers 1

writelinesMethod · 0.45

Calls 2

randintFunction · 0.85
waitMethod · 0.45

Tested by

no test coverage detected