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

Method __init__

example_code/item_099.py:68–69  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

66print("Example 2")
67class NullSocket:
68 def __init__(self):
69 self.handle = open(os.devnull, "wb")
70
71 def send(self, data):
72 self.handle.write(data)

Callers

nothing calls this directly

Calls 1

openFunction · 0.85

Tested by

no test coverage detected