title: How do I implement a circular buffer in Python?
body: <p>I have a matrix for instance</p>
  
  <pre><code>a=[12,2,4,67,8,9,23]
  </code></pre>
  
  <p>and I would like a code that appends a value say 45 to it and removes the first value '12'
  so in essence I want to make </p>
  
  <pre><code>a = [2,4,67,8,9,23,45]
  </code></pre>
  
  <p>I want to work with regular matrices not numpy matrices so I can't use hstack or vstack
  How do I do this in python? Any help would be appreciated, thanks</p>