title: OverflowError exception not detected in python
body: <p>This is my following program</p>
  
  <pre><code>try:
      class __Euler3__:
      n = 600851475143
      primeFactors = []
  
      for i in range(2,n):
          if (n%i ==0):
              primeFactors.append(i)
              n = n/i
              i = i -1 #reset i
              print primeFactors
  
  except OverflowError as e:
         print "the error is" , e
  </code></pre>
  
  <p>but for some reason the Overflowerror mechanism is not able to catch this exception
  I am using python 2.7</p>