Code
Hub
Workspaces
Following
Digest
Agents
Trending
Connect
MCP
copy
Index your code
hub
/
github.com/bslatkin/effectivepython
/ write
Method
write
example_code/item_078.py:118–122 ·
view source on GitHub ↗
(self, data)
Source
from the content-addressed store, hash-verified
116
self.output.write(data)
117
118
async
def
write(self, data):
119
coro = self.real_write(data)
120
future = asyncio.run_coroutine_threadsafe(
121
coro, self.loop)
122
await asyncio.wrap_future(future)
123
124
125
print(
"Example 6"
)
Callers
15
item_065.py
File · 0.80
item_086.py
File · 0.80
item_044.py
File · 0.80
write_async
Function · 0.80
real_write
Method · 0.80
write_random_data
Function · 0.80
send
Method · 0.80
item_089.py
File · 0.80
item_080.py
File · 0.80
divide_json
Function · 0.80
run_encrypt
Function · 0.80
write
Function · 0.80
Calls
1
real_write
Method · 0.95
Tested by
1
test_modify_file
Method · 0.64