mirror of
https://github.com/davidhalter/jedi.git
synced 2026-05-16 21:44:56 +08:00
start switching to a more python similar approach of naming, start by naming execution stuff py__call__
This commit is contained in:
@@ -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:
|
||||
|
||||
Reference in New Issue
Block a user