1
0
forked from VimPlug/jedi

fixed the getattr/__getattr__ stuff

This commit is contained in:
Dave Halter
2014-01-10 15:14:55 +01:00
parent f868668f0e
commit 14c9ed88ca
5 changed files with 5 additions and 14 deletions
+3 -4
View File
@@ -258,16 +258,15 @@ class Evaluator(object):
call.stmt.parent = loop
result += self.eval_statement(call.stmt)
else:
if isinstance(call, compiled.PyName):
print call, call.parent
result.append(call.parent)
elif isinstance(call, pr.Lambda):
if 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(
er.Function, er.Class, er.Instance, iterable.ArrayInstance):
result.append(call)
# The string tokens are just operations (+, -, etc.)
elif isinstance(call, compiled.PyObject):
result.append(call)
elif not isinstance(call, (str, unicode)):
if isinstance(call, pr.Call) and str(call.name) == 'if':
# Ternary operators.