diff --git a/src/tinySelf/vm/frames.py b/src/tinySelf/vm/frames.py index ad01cd9..da74969 100644 --- a/src/tinySelf/vm/frames.py +++ b/src/tinySelf/vm/frames.py @@ -265,6 +265,11 @@ def next_process(self): self.cycler = 0 def stash_push(self): + """ + Stash all processes and context and run just current code. + + Used for eval() implementation, that is for immediate evaluation. + """ copy = ProcessCycler() copy.cycler = self.cycler copy.process = self.process @@ -279,6 +284,11 @@ def stash_push(self): self.processes = [] def stash_pop(self): + """ + Unstash processes and whole context. + + Used for eval() implementation, that is for immediate evaluation. + """ copy = self.stash.pop() self.cycler = copy.cycler