MCPcopy Create free account
hub / github.com/bslatkin/effectivepython / open

Function open

example_code/item_010.py:180–182  ·  view source on GitHub ↗
(*args, **kwargs)

Source from the content-addressed store, hash-verified

178 real_open = open
179
180 def open(*args, **kwargs):
181 kwargs["encoding"] = "utf-8"
182 return real_open(*args, **kwargs)
183
184 with open("data.bin", "r") as f:
185 data = f.read()

Callers 15

item_065.pyFile · 0.85
item_086.pyFile · 0.85
mainFunction · 0.85
item_044.pyFile · 0.85
run_tasks_simplerFunction · 0.85
runMethod · 0.85
write_random_dataFunction · 0.85
start_write_threadsFunction · 0.85
setupFunction · 0.85
confirm_mergeFunction · 0.85
__init__Method · 0.85
item_089.pyFile · 0.85

Calls

no outgoing calls

Tested by 1

test_modify_fileMethod · 0.68