Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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
66
print(
"Example 2"
)
67
class
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
open
Function · 0.85
Tested by
no test coverage detected