Don't go crazy with big lists.
This commit is contained in:
1 parent
a0bf465aee
commit
c4601b835f
2 files changed
+10
No files matched your search
@@ -207,6 +207,9 @@ class CompiledObject(Context):
|
||||
return
|
||||
|
||||
for i, part in enumerate(self.obj):
|
||||
if i > 20:
|
||||
# Should not go crazy with large iterators
|
||||
break
|
||||
yield LazyKnownContext(create(self.evaluator, part))
|
||||
|
||||
def py__name__(self):
|
||||
|
||||
Reference in new issue
Block a user