Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ write
Function
write
example_code/item_077.py:86–88 ·
view source on GitHub ↗
(data)
Source
from the content-addressed store, hash-verified
84
lock = Lock()
85
86
def
write(data):
87
with
lock:
88
output.write(data)
89
90
threads = []
91
for
handle in handles:
Callers
nothing calls this directly
Calls
2
write
Method · 0.80
write_async
Function · 0.70
Tested by
no test coverage detected