(self)
| 148 | class lazylist(list): |
| 149 | |
| 150 | def load(self): |
| 151 | # Must be overridden in a subclass. |
| 152 | # Must load data with list.append(self, v) instead of lazylist.append(v). |
| 153 | pass |
| 154 | |
| 155 | def _lazy(self, method, *args): |
| 156 | """ If the list is empty, calls lazylist.load(). |