相关文章推荐
卖萌的眼镜  ·  yolox-ros-deepstream ...·  1 年前    · 
踏实的脆皮肠  ·  如何使用Python 和 ...·  1 年前    · 
时尚的楼房  ·  Troubleshoot the ...·  1 年前    · 
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.

Post all errors and relevant code here directly as text as an minimal reproducible example . Carcigenicate Nov 5 '19 at 20:22 You have an infinite loop. You have a while True with only one break . Obviously, the break statement is never being executed. Look at the conditions around the break statement and make sure they are correct. mario_sunny Nov 5 '19 at 20:24

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