title: Why does a for-loop with pop-method (or del statement) not iterate over all list elements
body: <p>I am new to Python and experimenting with lists
  I am using Python 3.2.3 (default, Oct 19 2012, 20:13:42), [GCC 4.6.3] on linux2</p>
  
  <p>Here is my samplecode</p>
  
  <pre><code>&gt;&gt;&gt; l=[1,2,3,4,5,6]
  &gt;&gt;&gt; for i in l:
  ...     l.pop(0)
  ...     print(l)
  ... 
  </code></pre>
  
  <p>I would expect the following output</p>
  
  <pre><code>1
  [2, 3, 4, 5, 6]
  2
  [3, 4, 5, 6]
  3
  [4, 5, 6]
  4
  [5, 6]
  5
  [6]
  6
  []
  </code></pre>
  
  <p>Instead I am getting this</p>
  
  <pre><code>1
  [2, 3, 4, 5, 6]
  2
  [3, 4, 5, 6]
  3
  [4, 5, 6]
  </code></pre>
  
  <p>The for-loop stops iterating after 3 turns. Can somebody explain why?</p>