title: If range() is a generator in Python 3.3, why can I not call next() on a range?
body: <p>Perhaps I've fallen victim to misinformation on the web, but I think it's more likely just that I've misunderstood something.  Based on what I've learned so far, range() is a generator, and generators can be used as iterators.  However, this code:</p>
  
  <pre><code>myrange = range(10)
  print(next(myrange))
  </code></pre>
  
  <p>gives me this error:</p>
  
  <pre><code>TypeError: 'range' object is not an iterator
  </code></pre>
  
  <p>What am I missing here?  I was expecting this to print 0, and to advance to the next value in <code>myrange</code>.  I'm new to Python, so please accept my apologies for the rather basic question, but I couldn't find a good explanation anywhere else.</p>