summaryrefslogtreecommitdiffstats
path: root/forum/utils/lists.py
diff options
context:
space:
mode:
Diffstat (limited to 'forum/utils/lists.py')
-rwxr-xr-xforum/utils/lists.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/forum/utils/lists.py b/forum/utils/lists.py
index bbcfae98..f69c8f20 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