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

Method __init__

example_code/item_055.py:195–197  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

193
194class Child(ApiClass):
195 def __init__(self):
196 super().__init__()
197 self._value = "hello" # Conflicts
198
199a = Child()
200print(f"{a.get()} and {a._value} should be different")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected