Show More
@@ -87,6 +87,13 b' class lazymap:' | |||
|
87 | 87 | return True |
|
88 | 88 | except KeyError: |
|
89 | 89 | return False |
|
90 | def __iter__(self): | |
|
91 | for i in xrange(self.p.l): | |
|
92 | try: | |
|
93 | yield self.p.index[i][6] | |
|
94 | except: | |
|
95 | self.p.load(i) | |
|
96 | yield self.p.index[i][6] | |
|
90 | 97 | def __getitem__(self, key): |
|
91 | 98 | try: |
|
92 | 99 | return self.p.map[key] |
General Comments 0
You need to be logged in to leave comments.
Login now