1
0
forked from VimPlug/jedi

Don't go crazy with big lists.

This commit is contained in:
Dave Halter
2017-09-07 01:25:49 +02:00
parent a0bf465aee
commit c4601b835f
2 changed files with 10 additions and 0 deletions

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):