, , , , , , . python 3.5 Windows 10 x64 , ( 993). , , , , Python.
import sys
import threading
class SomeCallable:
def __call__(self):
try:
self.recurse(99900)
except RecursionError:
print("Booh!")
else:
print("Hurray!")
def recurse(self, n):
if n > 0:
self.recurse(n-1)
SomeCallable()()
sys.setrecursionlimit(100000)
threading.stack_size(0x2000000)
t = threading.Thread(target=SomeCallable())
t.start()
t.join()