title: How can I get a stack overflow error in Python?
body: <p>I currently use this code:</p>
  <pre class="lang-py prettyprint-override"><code>def f():
      try:
          f()
      except RecursionError:
          f()
  
  try:
      f()
  except RecursionError:
      f()
  </code></pre>
  <p>This results in a fatal stack overflow instantly. However, I was wondering if there is an easier way to do this which is much more Pythonic.</p>