Show More
@@ -87,6 +87,13 b' class lazymap:' | |||||
87 | return True |
|
87 | return True | |
88 | except KeyError: |
|
88 | except KeyError: | |
89 | return False |
|
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 | def __getitem__(self, key): |
|
97 | def __getitem__(self, key): | |
91 | try: |
|
98 | try: | |
92 | return self.p.map[key] |
|
99 | return self.p.map[key] |
General Comments 0
You need to be logged in to leave comments.
Login now