How do I detect a max. recursion depth exceeded exception in Python?
<pre><code>try:
    recursive_function()
except RuntimeError e:
    # is this a max. recursion depth exceeded exception?
</code></pre>

<p>How do I tell when the maximum recursion depth has been reached?</p>
