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

Method __init__

example_code/item_061.py:52–53  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

50print("Example 1")
51class LazyRecord:
52 def __init__(self):
53 self.exists = 5
54
55 def __getattr__(self, name):
56 value = f"Value for {name}"

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected