1
0
forked from VimPlug/jedi

trying to fix the getattr mess with compiled

This commit is contained in:
Dave Halter
2014-01-10 13:36:29 +01:00
parent b1409c8f74
commit f868668f0e
6 changed files with 30 additions and 18 deletions

View File

@@ -258,7 +258,10 @@ class Evaluator(object):
call.stmt.parent = loop
result += self.eval_statement(call.stmt)
else:
if isinstance(call, pr.Lambda):
if isinstance(call, compiled.PyName):
print call, call.parent
result.append(call.parent)
elif isinstance(call, pr.Lambda):
result.append(er.Function(self, call))
# With things like params, these can also be functions...
elif isinstance(call, pr.Base) and call.isinstance(