(self, name)
| 7 | # when changing the delegate. |
| 8 | |
| 9 | def __getattr__(self, name): |
| 10 | attr = getattr(self.delegate, name) # May raise AttributeError |
| 11 | setattr(self, name, attr) |
| 12 | self.__cache.add(name) |
| 13 | return attr |
| 14 | |
| 15 | def resetcache(self): |
| 16 | "Removes added attributes while leaving original attributes." |