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

Method __getattr__

Solutions/8_6/server.py:48–49  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

46 return self.sock.send(data)
47
48 def __getattr__(self, name):
49 return getattr(self.sock, name)
50
51def tcp_server(address, handler):
52 sock = GenSocket(socket(AF_INET, SOCK_STREAM))

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected