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

Method send

example_code/item_076.py:59–62  ·  view source on GitHub ↗
(self, command)

Source from the content-addressed store, hash-verified

57 self.file = connection.makefile("rb")
58
59 def send(self, command):
60 line = command + "\n"
61 data = line.encode()
62 self.connection.send(data)
63
64 def receive(self):
65 line = self.file.readline()

Callers 8

send_numberMethod · 0.45
new_gameFunction · 0.45
request_numberMethod · 0.45
report_outcomeMethod · 0.45
send_numberMethod · 0.45
new_async_gameFunction · 0.45
request_numberMethod · 0.45
report_outcomeMethod · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected