Refactored to use cached_asts in Concepts, rather than setting up a value directly
This commit is contained in:
@@ -107,9 +107,7 @@ class PythonEvaluator(OneReturnValueEvaluator):
|
||||
sub_context.add_values(return_values=evaluated)
|
||||
|
||||
if evaluated.key == concept.key:
|
||||
my_locals[name] = evaluated if return_concept else \
|
||||
evaluated.body if ConceptParts.BODY in evaluated.cached_asts else \
|
||||
evaluated
|
||||
my_locals[name] = evaluated if return_concept else context.sheerka.value(evaluated)
|
||||
|
||||
if self.locals:
|
||||
my_locals.update(self.locals)
|
||||
|
||||
Reference in New Issue
Block a user