Fixed some misbehaviours regarding question() + added #import functionality when restoring

This commit is contained in:
2020-09-23 20:08:15 +02:00
parent 17c74d3808
commit eeeed0f110
20 changed files with 164 additions and 83 deletions
+5 -1
View File
@@ -191,6 +191,7 @@ class ExecutionContext:
new.protected_hints.update(self.protected_hints)
self._children.append(new)
return new
def add_preprocess(self, name, **kwargs):
@@ -295,6 +296,9 @@ class ExecutionContext:
to_str = self.return_value_to_str(r)
self._logger.debug(f"[{self._id:2}]" + self._tab + "-> " + to_str)
def debug(self, text):
print(text)
def get_parent(self):
return self._parent
@@ -309,7 +313,7 @@ class ExecutionContext:
def in_private_context(self, concept_key):
return concept_key in self.private_hints
def add_to_private_hints (self, concept_key):
def add_to_private_hints(self, concept_key):
self.private_hints.add(concept_key)
def add_to_protected_hints(self, concept_key):