1
0
forked from VimPlug/jedi

fixed recursion problem with properties. However, this does not fix the problem, that things that are used like properties (closures with different inputs) still are not properly executed, due to recursion detection.

This commit is contained in:
David Halter
2012-08-10 23:29:26 +02:00
parent 1843293624
commit 76eb3e53e7
2 changed files with 11 additions and 5 deletions

View File

@@ -137,7 +137,7 @@ class Instance(Executable):
def __init__(self, base, var_args=parsing.Array(None, None)):
super(Instance, self).__init__(base, var_args)
if str(base.name) in ['list', 'set'] \
and builtin.Builtin.name == base.get_parent_until().path:
and builtin.Builtin.scope == base.get_parent_until():
# compare the module path with the builtin name.
self.var_args = dynamic.check_array_instances(self)
else: