Suppose there is a function that collects data, for example from Wikipedia, the function runs itself recursively, the default recursion limit is 2000, but this is not enough for data collection, and I need the function to run a lot more times, what are the outputs?
sys.setrecursionlimit(1500) You can raise the limit, but this will lead to a stack overflow (this is such protection in the CPython implementation), and if the limit is raised above 4,000, the interpreter does not stand up. Actually, it is clear that I can solve the problem without a recursive start, but I wonder if it is possible to do something with recursion, so that the function could call itself 100,000 times like that?
ulimit -s unlimitedallowed the function to call itself 4.5 million times, then the operative stupidly ended) - andreymal