OiO.lk Community platform!

Oio.lk is an excellent forum for developers, providing a wide range of resources, discussions, and support for those in the developer community. Join oio.lk today to connect with like-minded professionals, share insights, and stay updated on the latest trends and technologies in the development field.
  You need to log in or register to access the solved answers to this problem.
  • You have reached the maximum number of guest views allowed
  • Please register below to remove this limitation

Why is the maximum recursion depth in python 1000?

  • Thread starter Thread starter Zaizer zazza
  • Start date Start date
Z

Zaizer zazza

Guest
I was curious about what the MRD (maximum recursion depth) is in python, so i wrote this:

Code:
def call(n):
    print (n)
    return call(n+1)

call(1)

The end result was 979, wich is a peculiar number for me. I could not find anywhere why this number is the standard. As i am a self taught programmer i would apreciate it being explained in simple terms.

EDIT: apperantly it's supposed to be a 1000, but why this number?
<p>I was curious about what the MRD (maximum recursion depth) is in python, so i wrote this:</p>

<pre><code>def call(n):
print (n)
return call(n+1)

call(1)
</code></pre>

<p>The end result was 979, wich is a peculiar number for me. I could not find anywhere why this number is the standard. As i am a self taught programmer i would apreciate it being explained in simple terms.</p>

<p>EDIT: apperantly it's supposed to be a 1000, but why this number?</p>
 

Latest posts

D
Replies
0
Views
1
Dhanushka Amarakoon
D
S
Replies
0
Views
1
Shikhar Ambashta
S
Top