Don't go crazy with big lists.

This commit is contained in:
Dave Halter committed 2017-09-07 01:26:53 +02:00
1 parent a0bf465aee
commit c4601b835f
2 files changed
+10

No files matched your search

+3
View File
@@ -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):