MCPcopy Create free account
hub / github.com/dabeaz-course/python-mastery / __getattr__

Method __getattr__

Solutions/8_6/asyncserver.py:52–53  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

50 return self.sock.send(data)
51
52 def __getattr__(self, name):
53 return getattr(self.sock, name)
54
55async def tcp_server(address, handler):
56 sock = GenSocket(socket(AF_INET, SOCK_STREAM))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected