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

Function main

example_code/item_076.py:271–280  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

269
270print("Example 15")
271def main():
272 address = ("127.0.0.1", 1234)
273 server_thread = Thread(
274 target=run_server, args=(address,), daemon=True
275 )
276 server_thread.start()
277
278 results = run_client(address)
279 for number, outcome in results:
280 print(f"Client: {number} is {outcome}")
281
282main()
283

Callers 1

item_076.pyFile · 0.70

Calls 1

run_clientFunction · 0.85

Tested by

no test coverage detected