title: xrange versus itertools.count Python 2.7
body: <p>I want to run a range from a start to an end value. It works fine on low numbers but when it gets too large it causes an overflow error as int too large to convert to C Long. I am using Python 2.7.3.</p>
  
  <p>I read here <a href="https://stackoverflow.com/questions/22114088/overflowerror-python-int-too-large-to-convert-to-c-long/22114284#22114284">OverflowError Python int too large to convert to C long</a> on using the <code>itertools.count()</code> method except that method works differently to the <code>xrange</code> method by stepping as opposed to declaring an end range value.</p>
  
  <p>Can the <code>itertools.count()</code> be set up to work like <code>xrange()</code>?</p>
  
  <pre><code>print "Range start value"
  start_value = raw_input('&gt; ')
  start_value = int(start_value)
  
  print "Range end value"
  end_value = raw_input('&gt; ')
  end_value = int(end_value)
  
  for i in xrange(start_value, end_value):
      print hex(i)
  </code></pre>