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

Method __init__

example_code/item_061.py:188–189  ·  view source on GitHub ↗
(self, data)

Source from the content-addressed store, hash-verified

186print("Example 12")
187class DictionaryRecord:
188 def __init__(self, data):
189 self._data = data
190
191 def __getattribute__(self, name):
192 # Prevent weird interactions with isinstance() used

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected