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

Class Child

example_code/item_055.py:194–197  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

192 return self._value
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 1

item_055.pyFile · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected