Stack Overflow for Teams is a private, secure spot for you and
your coworkers to find and share information.
Learn more
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.
Here is the full error (This website said there was to much code in the post so I put it in a paste-bin):
https://pastebin.com/1pi5U0Kd
Here
is my code. Type yes because the error is in the beta version. Make a function and try to use it.
–
–
The error you're getting indicates that you have a function called
do
which calls itself, probably in an infinite loop. When a function does that too many times (calls itself inside itself, which causes it to call itself inside itself inside itself...) you get what's called a "stack overflow".
If you don't do that, you won't get this error.
Thanks for contributing an answer to Stack Overflow!
-
Please be sure to
answer the question
. Provide details and share your research!
But
avoid
…
-
Asking for help, clarification, or responding to other answers.
-
Making statements based on opinion; back them up with references or personal experience.
To learn more, see our
tips on writing great answers
.
site design / logo © 2020 Stack Exchange Inc; user contributions licensed under
cc by-sa 4.0
with
attribution required
.
rev 2020.4.3.36492