title: Why does my Python freeze when I do an overflow calculation?
body: <p>I'm a MATLAB user trying to understand Python so sorry if this is obvious.</p>
  
  <p>If I say</p>
  
  <pre><code>print(9**9)
  </code></pre>
  
  <p>I get:
  387420489</p>
  
  <p>Great.</p>
  
  <p>If I say <code>print(9**9**9)</code>
  Python just sits there indefinitely and freezes (I use Spyder version 4). Ctrl-C doesn't stop it.
  Why does it not just immediately return Inf? Is this expected behavior?</p>