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

Method __init__

example_code/item_048.py:121–122  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

119print("Example 8")
120class BetterCountMissing:
121 def __init__(self):
122 self.added = 0
123
124 def __call__(self):
125 self.added += 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected