title: Create a buffer in python
body: <p>I do not have much experience with Python and need to figure out a few things regarding buffering:</p>
  
  <p>I want to generate a list in which I can allocate a certain amount of "buffer" space (do not know the specifics on this), to generate a list of integers. If the 'buffer' gets full I'm assuming it needs a flush command? Or how would you clear the buffer to continue putting things into that buffer?</p>
  
  <p><strong>Here is a sample of my code:</strong> </p>
  
  <pre><code>for i in range(0,500):
      randoms = random.randint(0,100000)
      looplist.append(randoms)
  </code></pre>
  
  <p>What I would want is in looplist, to be a sort of buffer I assume? in which if the maximum buffer space in looplist gets full, it would need to clear out (is there a pause during that time? or what happens) the list to continue re-generating integers to that list/ buffer. </p>
  
  <p><strong>Part 2 question:</strong> Would like explanation as simple of how a buffer could work for python? or does memory management of python just disable need to allocate own buffers? (can we still do it if we want too?)</p>
  
  <p>I will edit my question if it seems to broad scope, trying to be as descriptive as I know how.</p>