title: Why is there no xrange function in Python3?
body: <p>Recently I started using Python3 and it's lack of <code>xrange</code> hurts.</p>
  <p>Simple example:</p>
  <ol>
  <li><p>Python2:</p>
  <pre><code>from time import time as t
  def count():
    st = t()
    [x for x in xrange(10000000) if x%4 == 0]
    et = t()
    print et-st
  count()
  </code></pre>
  </li>
  <li><p>Python3:</p>
  <pre><code>from time import time as t
  
  def xrange(x):
  
      return iter(range(x))
  
  def count():
      st = t()
      [x for x in xrange(10000000) if x%4 == 0]
      et = t()
      print (et-st)
  count()
  </code></pre>
  </li>
  </ol>
  <p>The results are, respectively:</p>
  <ol>
  <li><code>1.53888392448</code></li>
  <li><code>3.215819835662842</code></li>
  </ol>
  <p>Why is that? I mean, why <code>xrange</code> has been removed? It's such a great tool to learn. For the beginners, just like myself, like we all were at some point. Why remove it? Can somebody point me to the proper PEP, I can't find it.</p>