| 162 | |
| 163 | print("Example 10") |
| 164 | class BrokenDictionaryRecord: |
| 165 | def __init__(self, data): |
| 166 | self._data = data |
| 167 | |
| 168 | def __getattribute__(self, name): |
| 169 | print(f"* Called __getattribute__({name!r})") |
| 170 | return self._data[name] |
| 171 | |
| 172 | |
| 173 | print("Example 11") |