def mark (self):
        """
        The current (user level) commmand ends.
        """
        self._commands[self._index+1:] =[self._steps, None]
        self._index+=1
        self._steps =[]

        The current (user level) commmand ends.
        
recipes/Python/306866_A_basic_undo_mechanism/recipe-306866.py