title: How do I move one position backwards so that my new element is not on top of my previous one?
body: <p>How do I move one position backwards so that my new element is not on top of my previous one? This is a queue.
  This is the constructor:</p>
  <pre><code>def _init_(self, capacity=8):
      self.__data = [None] * capacity
      self.__front = 0
      self.__size = 0
  </code></pre>
  <p>This is the function with problems:</p>
  <pre><code>def insert_p_clients(self, client):
          if self.is_full():
              raise ValueError('A fila está cheia! Tente mais tarde!')
          self._data[self._front] = client
          self._front = (self.front + 1) % len(self._data)
          self.__size += 1
  </code></pre>