What’s the maximum level of recursion and how do I change it in Python?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default is 1000 levels deep and you can change that using the
setrecursionlimitfunction in thesysmodule.Warning:
Beware that some operating systems may start running into problems if you go much higher due to limited stack space.