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

Method __getattribute__

example_code/item_061.py:168–170  ·  view source on GitHub ↗
(self, name)

Source from the content-addressed store, hash-verified

166 self._data = data
167
168 def __getattribute__(self, name):
169 print(f"* Called __getattribute__({name!r})")
170 return self._data[name]
171
172
173print("Example 11")

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected