Corrected a mistake, not fond of keeping garbage tokens tbh, will monitor closely
This commit is contained in:
parent
e4407e93a5
commit
40d51d9aaf
|
|
@ -346,7 +346,8 @@ class ContextManager:
|
|||
raise error
|
||||
for i in range(start, end):
|
||||
if self.pile[i]:
|
||||
container.add(self.pile[i].to_container())
|
||||
# container.add(self.pile[i].to_container()) # This line transform the self modifiying containers # MONITOR
|
||||
container.add(self.pile[i]) # Could also ignore the first and last element, or ignore the self modifying tokens
|
||||
self.pile[i] = None
|
||||
container.add(self.pile[end])
|
||||
self.pile[end] = None
|
||||
|
|
|
|||
Loading…
Reference in New Issue