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

Method request_number

example_code/item_076.py:180–183  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

178
179 print("Example 10")
180 def request_number(self):
181 self.send("NUMBER")
182 data = self.receive()
183 return int(data)
184
185
186 print("Example 11")

Callers 1

__iter__Method · 0.95

Calls 2

sendMethod · 0.45
receiveMethod · 0.45

Tested by

no test coverage detected