title: What is the hard recursion limit for Linux, Mac and Windows?
body: <p>Python's <code>sys</code> module <a href="http://docs.python.org/library/sys.html#sys.setrecursionlimit" rel="noreferrer">provides a function</a> <code>setrecursionlimit</code> that lets you change Python's maximum recursion limit. The docs say:</p>
  
  <blockquote>
    <p>The highest possible limit is platform-dependent.</p>
  </blockquote>
  
  <p>My question is: What is the highest possible limits for various platforms, under CPython? I would like to know the values for Linux, Mac and Windows.</p>
  
  <p><strong>UPDATE:</strong> Can we please avoid "You're doing it wrong" answers? I know that trying to do very deep recursion is usually a bad idea. I've considered the pros and cons in my specific situation and decided that I want to do it.</p>