diff options
Diffstat (limited to 'forum/utils/lists.py')
-rwxr-xr-x[-rw-r--r--] | forum/utils/lists.py | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/forum/utils/lists.py b/forum/utils/lists.py index bbcfae98..f69c8f20 100644..100755 --- a/forum/utils/lists.py +++ b/forum/utils/lists.py @@ -1,5 +1,9 @@ """Utilities for working with lists and sequences.""" +class LazyList(list): + def __init__(self, get_data): + self.data = get_data + def flatten(x): """ Returns a single, flat list which contains all elements retrieved |