G
Size: a a a
G
R3
AE
AE
БГ
БГ
def x(a=1):
print(a)
x(a+1)
БГ
R3
R3
AE
l
__main__
и первый вызов функцииR3
l
R3
R3
AE
БГ
py3
import sys
sys.setrecursionlimit(4)
def x(a=1):
print(a)
x(a+1)
x()
Traceback (most recent call last):
File "source_file.py", line 6, in <module>
File "source_file.py", line 5, in x
File "source_file.py", line 5, in x
File "source_file.py", line 4, in x
RecursionError: maximum recursion depth exceeded while getting the str of an object
Error in sys.excepthook:
Traceback (most recent call last):
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 53, in apport_excepthook
File "/usr/lib/python3/dist-packages/apport_python_hook.py", line 24, in enabled
RecursionError: maximum recursion depth exceeded while calling a Python object
Original exception was:
Traceback (most recent call last):
File "source_file.py", line 6, in <module>
File "source_file.py", line 5, in x
File "source_file.py", line 5, in x
File "source_file.py", line 4, in x
RecursionError: maximum recursion depth exceeded while getting the str of an object
1
2
DB