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

Method __init__

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

Source from the content-addressed store, hash-verified

100print("Example 6")
101class CountMissing:
102 def __init__(self):
103 self.added = 0
104
105 def missing(self):
106 self.added += 1

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected