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

Method request_number

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

Source from the content-addressed store, hash-verified

394
395 print("Example 24")
396 async def request_number(self):
397 await self.send("NUMBER") # Changed
398 data = await self.receive() # Changed
399 return int(data)
400
401
402 print("Example 25")

Callers 1

__aiter__Method · 0.95

Calls 2

sendMethod · 0.45
receiveMethod · 0.45

Tested by

no test coverage detected