БГ
Size: a a a
БГ
БГ
БГ
py3
import sys
sys.setrecursionlimit(3)
Traceback (most recent call last):
File "source_file.py", line 2, in <module>
sys.setrecursionlimit(3)
RecursionError: cannot set the recursion limit to 3 at the recursion depth 1: the limit is too low
l
БГ
l
l
БГ
БГ
l
l
python3
import inspect
print(len(inspect.stack()))
def x():
print(len(inspect.stack()))
x()
1
2
l
B
БГ
B
AG
БГ