Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/bslatkin/effectivepython
/ __call__
Method
__call__
example_code/item_048.py:124–126 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
122
self.added = 0
123
124
def
__call__(self):
125
self.added += 1
126
return
0
127
128
counter = BetterCountMissing()
129
assert counter() == 0
Callers
nothing calls this directly
Calls
no outgoing calls
Tested by
no test coverage detected