Ad

Tuesday, July 26, 2022

Debugging error RecursionError: maximum recursion depth exceeded

"RecursionError: maximum recursion depth exceeded"

Issue the maximum recursion depth is reached. The maxinum depth is 1000 in python.

solution 01

 "The default is 1000 levels deep and you can change that using the setrecursionlimit function in the sys module."

https://stackoverflow.com/questions/3289430/maximum-level-of-recursion-in-python

solution 02 

Use an iterative approach. 





No comments:

Post a Comment

Developer tools dev tools, developer efficiency hacks

Plugins :  sublime plugin for sublime editor, extensions for vscode.  VSCode (VS Code) basics: Drag file to text editing panel to preview, e...