start switching to a more python similar approach of naming, start by naming execution stuff py__call__

This commit is contained in:
Dave Halter
2014-07-30 14:06:32 +02:00
parent 196afaacbf
commit ccd304bcb7
2 changed files with 16 additions and 3 deletions
+2 -3
View File
@@ -331,12 +331,11 @@ class Evaluator(object):
return list(obj.execute_function(self, params))
elif obj.isinstance(er.Class):
# There maybe executions of executions.
return [er.Instance(self, obj, params)]
return obj.py__call__(params)
else:
stmts = []
if obj.isinstance(er.Function):
stmts = er.FunctionExecution(self, obj, params) \
.get_return_types(evaluate_generator)
return obj.py__call__(params, evaluate_generator)
else:
if hasattr(obj, 'execute_subscope_by_name'):
try: