(self)
Initialise the stacks and pointers for a new program.
Initialise the stacks and pointers for a new program.
Initialise the stacks and pointers for a new program .
def clear_stacks_and_pointers(self):
        """Initialise the stacks and pointers for a new program."""
        # stop running if we were
        self.set_pointer(False)
        # reset loop stacks
        self.clear_stacks()
        # reset program pointer
        self._program_code.seek(0)
        # reset stop/cont
        self.stop = None
        # reset data reader
        self.data_pos = 0
def clear_stacks_and_pointers ( self ) : # stop running if we were self . set_pointer ( False ) # reset loop stacks self . clear_stacks ( ) # reset program pointer self . _program_code . seek ( 0 ) # reset stop/cont self . stop = None # reset data reader self . data_pos = 0