When I run this code
def foo():
foo()
foo()
It obviously causes a stack overflow/recursion error
Traceback (most recent call last):
File ".../main.py", line 4, in <module>
foo()
File ".../main.py", line 2, in foo
foo()
File ".../main.py", line 2, in foo
foo()
File ".../main.py", line 2, in foo
foo()
[Previous line repeated 996 more times]
RecursionError: maximum recursion depth exceeded
But when I put an IPython
import at the top of the file
import IPython
def foo():
foo()
foo()
It stalls for a bit, then exits with
Process finished with exit code -1073741571 (0xC00000FD)
There is no other output. I know what is causing the error (stack overflow), but why won't it print a more descriptive error when IPython
is imported?
User contributions licensed under CC BY-SA 3.0