(self)
| 103 | class lazydict(dict): |
| 104 | |
| 105 | def load(self): |
| 106 | # Must be overridden in a subclass. |
| 107 | # Must load data with dict.__setitem__(self, k, v) instead of lazydict[k] = v. |
| 108 | pass |
| 109 | |
| 110 | def _lazy(self, method, *args): |
| 111 | """ If the dictionary is empty, calls lazydict.load(). |