'Fatal Python error: Cannot recover from stack overflow. In python

I was trying to make my own terminal and when I was adding the feature to make your own functions and use them I got this error:

Fatal Python error: Cannot recover from stack overflow.

EDIT: For everyone looking for help with a similar error, this problem is caused by a function calling itself too many times. That causes an error because python is so far deep into running the function over and over and over again.



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source